Skip to content

Commit 9abeddc

Browse files
committed
from win
1 parent ec9875a commit 9abeddc

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
cmake_minimum_required(VERSION 3.8...3.20)
1919

20+
if(MSVC)
21+
target_compile_options(${TARGET_NAME} /W4 /WX)
22+
endif()
23+
2024
set(BOOST_OPENMETHOD_VERSION 1)
2125

2226
if (BOOST_SUPERPROJECT_VERSION)

doc/modules/ROOT/examples/custom_rtti.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// See accompanying file LICENSE_1_0.txt
44
// or copy at http://www.boost.org/LICENSE_1_0.txt)
55

6-
#ifdef BOOST_COMP_MSVC
6+
#ifdef _MSC_VER
77
#pragma warning(disable : 4312)
88
#endif
99

doc/modules/ROOT/examples/deferred_custom_rtti.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// See accompanying file LICENSE_1_0.txt
44
// or copy at http://www.boost.org/LICENSE_1_0.txt)
55

6-
#ifdef BOOST_COMP_MSVC
6+
#ifdef _MSC_VER
77
#pragma warning(disable : 4312)
88
#endif
99

include/boost/openmethod/core.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define BOOST_OPENMETHOD_DEFAULT_REGISTRY ::boost::openmethod::default_registry
2828
#endif
2929

30-
#ifdef BOOST_COMP_MSVC
30+
#ifdef _MSC_VER
3131
#pragma warning(push)
3232
#pragma warning(disable : 4646)
3333
#pragma warning(disable : 4100)
@@ -1091,7 +1091,7 @@ class method;
10911091
//!
10921092
//! `Parameters` must contain at least one virtual parameter, i.e. a parameter
10931093
//! that has a type in the form `virtual_ptr<T, Registry>` or `virtual\_<T>`.
1094-
//! The dynamic types of the virtual arguments (the arguments corresponding to
1094+
//! The dynamic types of the virtual arguments (the arguments corresponding tosy
10951095
//! virtual parameters in the method's signature) are taken into account to
10961096
//! select the overrider to call.
10971097
//!
@@ -1259,7 +1259,7 @@ class method<Name, ReturnType(Parameters...), Registry>
12591259

12601260
template<auto Overrider>
12611261
static ReturnType (*next)(
1262-
BOOST_OPENMETHOD_DETAIL_REMOVE_VIRTUAL_(Parameters)...);
1262+
BOOST_OPENMETHOD_DETAIL_REMOVE_VIRTUAL_(Parameters)... args);
12631263

12641264
template<auto>
12651265
static bool has_next();
@@ -1752,7 +1752,7 @@ using boost::openmethod::virtual_ptr;
17521752

17531753
} // namespace boost::openmethod
17541754

1755-
#ifdef BOOST_COMP_MSVC
1755+
#ifdef _MSC_VER
17561756
#pragma warning(pop)
17571757
#endif
17581758

include/boost/openmethod/initialize.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <boost/assert.hpp>
2626
#include <boost/dynamic_bitset.hpp>
2727

28-
#ifdef BOOST_COMP_MSVC
28+
#ifdef _MSC_VER
2929
#pragma warning(push)
3030
#pragma warning(disable : 4457)
3131
#endif
@@ -1355,7 +1355,7 @@ auto finalize() -> void {
13551355

13561356
} // namespace boost::openmethod
13571357

1358-
#ifdef BOOST_COMP_MSVC
1358+
#ifdef _MSC_VER
13591359
#pragma warning(pop)
13601360
#endif
13611361

include/boost/openmethod/registry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ struct trace final {
411411
template<class Registry>
412412
struct fn {
413413
inline static bool on = []() {
414-
#ifdef BOOST_COMP_MSVC
414+
#ifdef _MSC_VER
415415
char* env;
416416
std::size_t len;
417417
auto result =

0 commit comments

Comments
 (0)