Bug #2114
closedtest/models/WStandardItemModelTest.C fails to compile
0%
Description
This is in the latest git repository from today.
I am using gcc 4.3 with boost 1.49. The WT_CPP_11_MODE is set to "-std=c++0x".
test/models/WStandardItemModelTest.C line 22 pushes a NULL pointer as a 0 into std::vector<WStandardItem*>. This file
fails to compile. Changing the 0 to (WStandardItem*)NULL fixes the compilation.
Updated by Wim Dumon over 11 years ago
- Status changed from New to Resolved
Gcc 4.3 is too old to compile wt in c+11 mode. 4.6 is the oldest we test with. Much of the interesting C+11 goodies (lambdas for example) are not supported anyway in gcc 4.3, so the examples wouldn't compile neither.
Wrt the specific problem you ran into: I believe this is a bug in gcc 4.3's c+11 support (but I'm still learning about the new standard so prove me wrong :)). If it's not c+11 compliant, I'll fix it.
BR,
Wim.
Updated by D R over 11 years ago
You are right. c++11 does support 0 as a pointer value for backwards compatibility.