Project

General

Profile

Actions

Bug #2114

closed

test/models/WStandardItemModelTest.C fails to compile

Added by D R over 10 years ago. Updated over 10 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.

Actions #1

Updated by Wim Dumon over 10 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.

Actions #2

Updated by D R over 10 years ago

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

Actions #3

Updated by Wim Dumon over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF