mirror of
https://github.com/boostorg/multi_index.git
synced 2025-05-11 21:34:03 +00:00
attended expansion of key<> support to MSVC
This commit is contained in:
parent
f31407d621
commit
72d4b74cfb
@ -13,12 +13,16 @@
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
|
||||
#include <boost/multi_index/composite_key.hpp>
|
||||
#include <boost/multi_index/global_fun.hpp>
|
||||
#include <boost/multi_index/member.hpp>
|
||||
#include <boost/multi_index/mem_fun.hpp>
|
||||
|
||||
#if __cplusplus>=201703L
|
||||
#if __cplusplus>=201703L||\
|
||||
defined(BOOST_MSVC)&&defined(__cpp_nontype_template_parameter_auto)
|
||||
|
||||
#define BOOST_MULTI_INDEX_KEY_SUPPORTED
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
|
@ -10,11 +10,13 @@
|
||||
|
||||
#include "test_key.hpp"
|
||||
|
||||
#if __cplusplus<201703L
|
||||
#if !defined(BOOST_MULTI_INDEX_KEY_SUPPORTED)
|
||||
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
void test_key()
|
||||
{
|
||||
/* trivially passes as key is not available for pre-C++17 compilers */
|
||||
BOOST_TEST(false); /* boost::multi_index::key not supported */
|
||||
}
|
||||
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user