[Dune] nullptr error gcc

Feng Xing snakexf at gmail.com
Mon Jul 11 15:01:03 CEST 2016


Hello,

I would like to look for a little help about my first code with dune, il contains one line in main(): cout<<“hello”<<endl;
I got the following error when including "dune/common/nullptr.hh”:

/usr/local/dune-2.4.1/include/dune/common/nullptr.hh:29:1: error: expected ';' after class definition
 } nullptr = {};              // and whose name is nullptr
/usr/local/dune-2.4.1/include/dune/common/nullptr.hh:29:1: error: qualifiers can only be specified for objects and functions
/usr/local/dune-2.4.1/include/dune/common/nullptr.hh:29:3: error: expected unqualified-id before 'nullptr'
 } nullptr = {};              // and whose name is nullptr


Il seems that it’s from const obj dune_nullptr_t in nullptr.hh. I use GCC4.9 (or GCC5.3) with std=c++11 in mac. Dune version is 2.4.1.

Thank you very much.

Best regards,

Feng Xing
Postdoc INRIA France
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20160711/ee958dc5/attachment.htm>


More information about the Dune mailing list