Changeset 4102 for trunk/configure.ac


Ignore:
Timestamp:
Sep 22, 2021, 9:50:18 AM (2 years ago)
Author:
Peter
Message:

add wrapper function that calls std::string::contains, ::starts_with, and ::ends_with, if available; otherwise use home-brewed code. Add autoconf tests that check if these functions are available in CXX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r4094 r4102  
    112112  AC_MSG_FAILURE([$CXX is not a C++11 compiler])
    113113])
     114# test for some features available in modern C++ versions (but not in c++11)
     115YAT_FUNC_STRING_ENDS_WITH
     116YAT_FUNC_STRING_STARTS_WITH
     117YAT_FUNC_STRING_CONTAINS
     118sleep 10
    114119
    115120AC_PROG_SED
Note: See TracChangeset for help on using the changeset viewer.