[ET Trac] [Einstein Toolkit] #1444: CarpetLib does not compile with gcc 4.8 due to static_assert

Einstein Toolkit trac-noreply at einsteintoolkit.org
Thu Sep 26 08:13:40 CDT 2013


#1444: CarpetLib does not compile with gcc 4.8 due to static_assert
--------------------+-------------------------------------------------------
 Reporter:  hinder  |       Owner:  eschnett           
     Type:  defect  |      Status:  new                
 Priority:  major   |   Milestone:                     
Component:  Carpet  |     Version:  development version
 Keywords:          |  
--------------------+-------------------------------------------------------
 Attempting to compile CarpetLib with gcc 4.8 leads to the error

 /Users/ian/Cactus/arrangements/Carpet/CarpetLib/src/prolongate_3d_rf2.cc:501:56:
 error: 'static_assert' was not declared in this scope

 I had not come across static_assert before.  Apparently it is a C++11
 feature.  gcc 4.6 was able to compile it, but it looks like gcc 4.8 is
 stricter.  Do we want to require -std=c++11, or should we avoid C++11
 features for now?

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1444>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list