boostorg / proto

Boost.org proto module
http://boost.org/libs/proto
21 stars 38 forks source link

Mismatch of #pragma warning push/pop #32

Open Trigve opened 3 years ago

Trigve commented 3 years ago

Using VS 2019 (16.10.0) there is mismatch of #pragma warning push/pop. The problem is in the given lines (and also 229): https://github.com/boostorg/proto/blob/7f924934689b940f3a72212ab0f714ec6fd6e34b/include/boost/proto/operators.hpp#L209-L212

I've modified it like below and now it is working ok:

BOOST_PROTO_PUSH_WARNINGS                                                             \
BOOST_PROTO_DISABLE_MSVC_C4714                                                        \
template<typename Arg>                                                                \
BOOST_FORCEINLINE                                                                     \
typename boost::proto::detail::enable_unary<                                          \