This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

a g++ compile warning


Hi,

Attached is a C++ file that I created.  It compiles and runs and
gives the correct output when compiled with GNU g++ compiler 
(version 3.0) on Sun Solaris, but I always get the following 
comiple warnings.  Tried without success to get rid of them.
Please help.  Thanks.

Luke Chang
Calix Networks
Lowell, MA

luke.cpp: In function `RandomIterator& _bsearch(RandomIterator,
RandomIterator, 
   T, std::random_access_iterator_tag) [with RandomIterator = 
   std::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, T
= 
   int]':
luke.cpp:13:   instantiated from `RandomIterator& bsearch(RandomIterator,
RandomIterator, T) [with RandomIterator = std::__normal_iterator<int*,
std::vector<int, std::allocator<int> > >, T = int]'
luke.cpp:68:   instantiated from here


Attachment: luke.cpp
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]