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/yat/utility/config_public.h.in

    r3999 r4102  
    4646#undef YAT_HAVE_BOOST_CONCEPT_WITH_CONSTRUCTOR
    4747
     48/* Define if you have function std::string::contains */
     49#undef YAT_HAVE_FUNC_STRING_CONTAINS
     50
     51/* Define if you have function std::string::ends_with */
     52#undef YAT_HAVE_FUNC_STRING_ENDS_WITH
     53
     54/* Define if you have function std::string::starts_with */
     55#undef YAT_HAVE_FUNC_STRING_STARTS_WITH
     56
    4857// macros below are always #defined, and only kept for backward
    4958// compatibility with yat 0.17
Note: See TracChangeset for help on using the changeset viewer.