martinmoene / optional-lite

optional lite - A C++17-like optional, a nullable object for C++98, C++11 and later in a single-file header-only library
Boost Software License 1.0
403 stars 45 forks source link

detected #pragma warning(push) with no corresponding #pragma warning(pop) #37

Closed eigenbom closed 5 years ago

eigenbom commented 5 years ago

Hit the following warning when testing the library today:

optional.hpp(267): warning C5032: detected #pragma warning(push) with no corresponding #pragma warning(pop)

martinmoene commented 5 years ago

Thanks @eigenbom ,

I wasn't able to quickly reproduce the warning C5032. Could you confirm if/that the change solves the issue?

eigenbom commented 5 years ago

I checked it on godbolt and it seems to have fixed it. Cheers.

martinmoene commented 5 years ago

Thanks!