|
|
|
Re: Indexer not working with << operator [message #997876 is a reply to message #997576] |
Tue, 08 January 2013 23:06 |
Andrew Ragone Messages: 4 Registered: January 2013 |
Junior Member |
|
|
Thx for the reply. You can download the boost API here: www dot boost dot org . It has many useful APIs that are not in stl. After you download and extract, just copy the boost directory into your include directory as it's a header only library. i.e. it has no binaries (for most of the APIs at least).
mySeconds is using boost's units template library. It overloads the << operator so you do not have to do any type conversions (which is an expensive operation). You can read about templates here: www dot cplusplus dot com/doc/tutorial/templates/ . This website is very good resource if you are new C++. if you have any issues installing the boost library let me know and I'll help you out. If you can confirm you have this issue also it will be great. I can file a bug report. What tool chain/compiler are are you using?
p.s. Sorry about the links. I'm getting an error with this forum saying that i can only post links to eclipse.org
[Updated on: Tue, 08 January 2013 23:08] Report message to a moderator
|
|
|
Re: Indexer not working with << operator [message #998036 is a reply to message #997876] |
Wed, 09 January 2013 08:43 |
Jayanth D Messages: 16 Registered: December 2012 |
Junior Member |
|
|
OK. I will reply you again after I download and install the boost API. I am using I am using Eclipse C/C++ IDE and MinGW Compiler tools.
Edit:
I tried to compile the code after succesfully installing boost library and got the same error you are getting i.e., "invalid overload of endl"
I think myseconds is not being converted to string.
[Updated on: Wed, 09 January 2013 09:35] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03995 seconds