Changeset 3804


Ignore:
Timestamp:
May 13, 2019, 12:39:09 AM (4 years ago)
Author:
Peter
Message:

closes #904; turn on cxx11 features by default

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r3796 r3804  
    44
    55version 0.17 (released NOT YET)
     6  - cxx11 features are now available also when YAT_WITH_CXX11 is not
     7    defined; user can still turn off cxx11 features with
     8    YAT_WITHOUT_CXX11
    69
    710  A complete list of closed tickets can be found here [[br]]
  • trunk/yat/utility/config_public.h.in

    r3792 r3804  
    6060//
    6161// If user want to disable all cxx11 features, they should #define
    62 // YAT_WITHOUT_CXX11; if cxx11 features are desired, user should
    63 // #define YAT_WITH_CXX11 and cxx11 features will be enabled if found
    64 // when building yat (see comment below).
    65 #ifndef YAT_WITH_CXX11
    66 #  ifndef YAT_WITHOUT_CXX11
    67 #    /// default behaviour is that cxx11 features are disabled; this is
    68 #    /// likely to change in future versions
    69 #    define YAT_HAVE_CXX11__ 0
     62// YAT_WITHOUT_CXX11.
     63#ifdef YAT_WITHOUT_CXX11
     64#  ifdef YAT_WITH_CXX11
     65#    error "cannot set both YAT_WITH_CXX11 and YAT_WITHOUT_CXX11"
    7066#  else
    7167#    /// YAT_WITHOUT_CXX11 defined by user, turn off features
     
    7369#  endif
    7470#else
    75 #  ifdef YAT_WITHOUT_CXX11
    76 #    error "cannot set both YAT_WITH_CXX11 and YAT_WITHOUT_CXX11"
    77 #  endif
    78 #  /// YAT_WITH_CXX11 defined by user, turn on features
     71#  /// turn on features, if YAT_WITHOUT_CXX11 not defined
    7972#  define YAT_HAVE_CXX11__ 1
    8073#endif
    8174
    8275
    83 // See comment and logic above for how to use public macros
    84 // YAT_WITH_CXX11 and YAT_WITHOUT_CXX11 to affect whether
    85 // YAT_HAVE_CXX11__ is defined.
     76// YAT_HAVE_CXX11__ is defined, unless YAT_WITHOUT_CXX11 is defined
     77// (see above)
    8678#if YAT_HAVE_CXX11__
    8779// Defines below are defined depending on tests performed during
Note: See TracChangeset for help on using the changeset viewer.