Author Topic: std::endl : wrong completion  (Read 24594 times)

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: std::endl : wrong completion
« Reply #15 on: August 27, 2010, 08:40:42 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

Code
__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?

Offline eranif

  • Regular
  • ***
  • Posts: 256
Re: std::endl : wrong completion
« Reply #16 on: August 27, 2010, 05:01:49 pm »
Quote
Thank 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

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: std::endl : wrong completion
« Reply #17 on: August 27, 2010, 05:26:11 pm »
Quote
Thank 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!