Project

General

Profile

Actions

Bug #2114

closed
DR

test/models/WStandardItemModelTest.C fails to compile

Bug #2114: test/models/WStandardItemModelTest.C fails to compile

Added by D R about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Target version:
-
Start date:
08/16/2013
Due date:
% Done:

0%

Estimated time:

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.

WD Updated by Wim Dumon about 13 years ago Actions #1

  • 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.

DR Updated by D R about 13 years ago Actions #2

You are right. c++11 does support 0 as a pointer value for backwards compatibility.

WD Updated by Wim Dumon about 13 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom