Skip to content

Commit

Permalink
Require C++17 for the smart* part of the library
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Dec 15, 2024
1 parent 29a15f6 commit 46da0d1
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/cpp_ctti_type_name_parser_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <boost/config.hpp>

#if (__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L)
#if (__cplusplus > 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG > 201402L)

#include <boost/dll/config.hpp>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion test/cpp_import_class_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <boost/config.hpp>

#if (__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L)
#if (__cplusplus > 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG > 201402L)

#include "../example/b2_workarounds.hpp"

Expand Down
2 changes: 1 addition & 1 deletion test/cpp_import_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <boost/config.hpp>

#if (__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L)
#if (__cplusplus > 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG > 201402L)

#include "../example/b2_workarounds.hpp"

Expand Down
7 changes: 2 additions & 5 deletions test/cpp_load_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@
#include <boost/config.hpp>
#include <boost/predef.h>

#if (__cplusplus >= 201103L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201103L)
// Make sure that it at least compiles
# include <boost/dll/smart_library.hpp>
#endif
#if (__cplusplus > 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG > 201402L)

#if (__cplusplus >= 201402L) || (BOOST_COMP_MSVC >= BOOST_VERSION_NUMBER(14,0,0))
# include <boost/dll/smart_library.hpp>

#include "../example/b2_workarounds.hpp"

Expand Down
2 changes: 1 addition & 1 deletion test/cpp_mangle_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <boost/config.hpp>

#if (__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L)
#if (__cplusplus > 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG > 201402L)

#include "../example/b2_workarounds.hpp"

Expand Down
2 changes: 1 addition & 1 deletion test/cpp_test_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <boost/config.hpp>

#if (__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L)
#if (__cplusplus > 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG > 201402L)

#include <boost/dll/config.hpp>
#include <boost/variant.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/ctti_type_name_parser_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <boost/config.hpp>

#if (__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L)
#if (__cplusplus > 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG > 201402L)
#include "../example/b2_workarounds.hpp"

#include <boost/core/lightweight_test.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/link.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <boost/config.hpp>

#if (__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L)
#if (__cplusplus > 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG > 201402L)

#include <boost/dll/smart_library.hpp>
#include <boost/dll/import_mangled.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/template_method_linux_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// or copy at http://www.boost.org/LICENSE_1_0.txt)

#include <boost/config.hpp>
#if (__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L)
#if (__cplusplus > 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG > 201402L)

#include <boost/dll/smart_library.hpp>
#include <boost/dll/import_mangled.hpp>
Expand Down

0 comments on commit 46da0d1

Please sign in to comment.