Ignore:
Timestamp:
Jan 19, 2017, 2:46:51 AM (6 years ago)
Author:
Peter
Message:

refs #878

Make configure try to turn on compiler switches (such as -std=c++11),
so it supports rvalues. If found, #define YAT_HAVE_RVALUE, which can
be used both in source files and in header files. For header files,
<yat/utility/config_public.h> must be #included.

As detailed in README users can turn off cxx11 support when at
configure time of yat, or at compile time of user's package with
preprocessor definition YAT_WITHOUT_CXX.

File:
1 edited

Legend:

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

    r3439 r3581  
    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
     60/// Define if compiler support rvalues */
     61#undef YAT_HAVE_RVALUE
     62#endif
     63
    5864/// Define to 1 if boost::exception_ptr works
    5965#undef YAT_HAVE_WORKING_BOOST_EXCEPTION_PTR
Note: See TracChangeset for help on using the changeset viewer.