attended expansion of key<> support to MSVC

This commit is contained in:
joaquintides 2018-08-18 12:46:30 +02:00
parent f31407d621
commit 72d4b74cfb
2 changed files with 9 additions and 3 deletions

View File

@ -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>

View File

@ -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