By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,129 Members | 1,245 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,129 IT Pros & Developers. It's quick & easy.

STL - operator overloading vector< float >

P: 46
While trying to copy data into the vector
I get the following error messages:

stl_algobase.h:247: error: no match for 'operator*' in '*__result'
stl_algobase.h:249: error: no match for 'operator++' in '++__result'
__result is the vector's OutputIterator

the ecode segement that gives me this problem is:
Expand|Select|Wrap|Line Numbers
  1. typedef std::vector< float > floatV;
  2. .
  3. .
  4. .
  5.     floatV v1_;
  6. .
  7. .
  8. .
  9. void XternalFloatRoutines::setVector(char* bytes, int byte_size)
  10. {
  11.     std::copy(bytes, bytes+byte_size, v1_);
  12. }
I am using the Eclipse IDE with CDT and Mingw.

Thanks for your help,
Dec 19 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.