Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion include/tl/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@
#include <type_traits>
#include <utility>

#if (defined(_MSC_VER) && _MSC_VER == 1900)
#if defined(_MSC_VER)
#pragma warning( push )
#pragma warning( disable: 4582 4583 )
#if (_MSC_VER == 1900)
#define TL_OPTIONAL_MSVC2015
#endif
#endif

#if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9 && \
!defined(__clang__))
Expand Down Expand Up @@ -2060,4 +2064,8 @@ template <class T> struct hash<tl::optional<T>> {
};
} // namespace std

#if defined(_MSC_VER)
#pragma warning( pop )
#endif

#endif