From 918e59c1096d03546d42c539ee1962a0421a1bd2 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Tue, 16 Jan 2018 00:44:11 +0300 Subject: [PATCH] One more fix in tests for /GR- flag --- test/test_lib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_lib.cpp b/test/test_lib.cpp index 8c3fa68..8879173 100644 --- a/test/test_lib.cpp +++ b/test/test_lib.cpp @@ -1,5 +1,5 @@ // -// Copyright (c) Antony Polukhin, 2012-2015. +// Copyright (c) Antony Polukhin, 2012-2018. // // // Distributed under the Boost Software License, Version 1.0. (See accompanying @@ -31,7 +31,7 @@ boost::typeindex::type_index get_const_user_defined_class() { return boost::typeindex::type_id_with_cvr(); } -#ifndef BOOST_HAS_PRAGMA_DETECT_MISMATCH +#if !defined(BOOST_HAS_PRAGMA_DETECT_MISMATCH) || !defined(_CPPRTTI) // Just do nothing void accept_typeindex(const boost::typeindex::type_index&) {} #endif