News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

std::endl : wrong completion

Started by killerbot, August 26, 2010, 12:07:14 PM

Previous topic - Next topic

Loaden

Quote from: eranif on August 27, 2010, 07:55:16 AM
std::endl *is* a function.

When people are typing std::endl they are actually passing the pointer of the function to the 'operator <<' of class basic_ostream

__ostream_type&
      operator<<(__ostream_type& (*__pf)(__ostream_type&))


The same is true for all other similar methods, like std::hex, std::oct, std::dec etc
So if you are going to special handle the 'endl' case, make sure you handle the other methods as well (hex, dec, oct etc.)

Eran

Thank eranif to help!
Another question, Why CodeLite can not use wxAuiToolBar on Linux?

eranif

QuoteThank eranif to help!
Another question, Why CodeLite can not use wxAuiToolBar on Linux?
It can. But I simply prefered not to use it but rather using wxToolbar (wxAuiToolBar is simply *ugly* under Linux, it looks like it was written for Windows and then ported to Linux/Mac)

If you really insist on enabling it, you can simply change it in the file cl_defs.h yo USE_AUI_TOOLBAR=1

Eran

Loaden

Quote from: eranif on August 27, 2010, 05:01:49 PM
QuoteThank eranif to help!
Another question, Why CodeLite can not use wxAuiToolBar on Linux?
It can. But I simply prefered not to use it but rather using wxToolbar (wxAuiToolBar is simply *ugly* under Linux, it looks like it was written for Windows and then ported to Linux/Mac)

If you really insist on enabling it, you can simply change it in the file cl_defs.h yo USE_AUI_TOOLBAR=1

Eran
Well, thank you!