Menu

#377 C++11 feature 'nullptr' in src/meshlab/mainwindow_RunTime.cpp since -r6246

v1.0_(example)
closed
nobody
None
1
2014-02-25
2013-12-27
No

There are 4 instances of 'nullptr' in this source file since -r6246

A definition for 'nullptr' is not supplied anywhere in my build (which is gcc 4.8.1, QT4.8.4 under ubuntu), unless I edit CXX=g++ -std=c++11 unto the makefile.
I've also tried adding #define nullptr 0 to work around, that works too.

... Either way I then run into another problem in glarea.cpp which I'll report separately.

So, it should either have -std=c++11 in the makefile (if such features are needed) or, if not needed, avoid using nullptr in the source code (or #define nullptr NULL conditionally).

Discussion

  • Paolo Cignoni

    Paolo Cignoni - 2014-02-25
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB