Skip to content

Commit

Permalink
parse_into supports C++11
Browse files Browse the repository at this point in the history
  • Loading branch information
grisumbras committed Aug 11, 2023
1 parent 6537eb9 commit d4327b9
Show file tree
Hide file tree
Showing 7 changed files with 322 additions and 306 deletions.
6 changes: 3 additions & 3 deletions example/parse_into.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <boost/json.hpp>
#include <iostream>

#ifndef BOOST_JSON_NO_PARSE_INTO
#ifdef BOOST_DESCRIBE_CXX14

#include <boost/describe.hpp>

Expand Down Expand Up @@ -215,11 +215,11 @@ int main()
}
}

#else // BOOST_JSON_NO_PARSE_INTO
#else // BOOST_DESCRIBE_CXX14

int main()
{
std::cout << "Only available in Boost.JSON!" << std::endl;
}

#endif // BOOST_JSON_NO_PARSE_INTO
#endif // BOOST_DESCRIBE_CXX14
6 changes: 3 additions & 3 deletions example/parse_into_canada.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <boost/json.hpp>
#include <iostream>

#ifndef BOOST_JSON_NO_PARSE_INTO
#ifdef BOOST_DESCRIBE_CXX14

#include <boost/describe.hpp>

Expand Down Expand Up @@ -87,11 +87,11 @@ int main()
}
}

#else // BOOST_JSON_NO_PARSE_INTO
#else // BOOST_DESCRIBE_CXX14

int main()
{
std::cout << "Only supported with C++14!" << std::endl;
}

#endif // BOOST_JSON_NO_PARSE_INTO
#endif // BOOST_DESCRIBE_CXX14
4 changes: 0 additions & 4 deletions include/boost/json/detail/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,6 @@
# define BOOST_JSON_CONSTINIT
#endif

#if (__cplusplus < 201400) && ! defined(BOOST_JSON_NO_PARSE_INTO)
# define BOOST_JSON_NO_PARSE_INTO
#endif

namespace boost {
namespace json {
namespace detail {
Expand Down
Loading

0 comments on commit d4327b9

Please sign in to comment.