Changeset 3601


Ignore:
Timestamp:
Jan 22, 2017, 2:16:21 PM (5 years ago)
Author:
Peter
Message:

introduce two macros, YAT_WITH_CXX11 and YAT_WITHOUT_CXX11, very much like GSL_RANGE_CHECK and GSL_RANGE_CHECK_OFF. If one of them is set, follow user's wish; if both are set, error out; if neither is set, c++11 is off. refs #878

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/config_public.h.in

    r3591 r3601  
    5656#undef YAT_HAVE_BOOST_CONCEPT_WITH_CONSTRUCTOR
    5757
    58 /// Don't turn on cxx11 features if user explicitely turned off cxx11.
    59 #ifndef YAT_WITHOUT_CXX11
     58/// Let the user turn on/off c++11 features with YAT_WITH_CXX11 and
     59/// YAT_WITHOUT_CXX11, respectively.
     60#ifndef YAT_WITH_CXX11
     61#  ifndef YAT_WITHOUT_CXX11
     62#    define YAT_WITH_CXX11 0 // default is off for now
     63#  else
     64#    define YAT_WITH_CXX11 0
     65#  endif
     66#else
     67#  ifdef YAT_WITHOUT_CXX11
     68#    error "cannot set both YAT_WITH_CXX11 and YAT_WITHOUT_CXX11"
     69#  endif
     70#endif
     71
     72
     73// Depending on whether YAT_WITH_CXX11 and YAT_WITHOUT_CXX11 are
     74// defined (see logic above), define specific features if found during
     75// configuration.
     76#if YAT_HAVE_CXX11__
    6077/// Define if compiler supports rvalues */
    6178#undef YAT_HAVE_RVALUE
Note: See TracChangeset for help on using the changeset viewer.