From 1ff942f3297e83bbf915bd0a943dbd54e2d332de Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Thu, 10 Dec 2015 20:55:45 +0300 Subject: [PATCH] Fix old MSVC warning --- include/boost/type_index/stl_type_index.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/type_index/stl_type_index.hpp b/include/boost/type_index/stl_type_index.hpp index c801e70..a5add88 100644 --- a/include/boost/type_index/stl_type_index.hpp +++ b/include/boost/type_index/stl_type_index.hpp @@ -1,5 +1,5 @@ // -// Copyright (c) Antony Polukhin, 2013-2014. +// Copyright (c) Antony Polukhin, 2013-2015. // // // Distributed under the Boost Software License, Version 1.0. (See accompanying @@ -200,7 +200,7 @@ inline bool stl_type_index::equal(const stl_type_index& rhs) const BOOST_NOEXCEP #ifdef BOOST_CLASSINFO_COMPARE_BY_NAMES return raw_name() == rhs.raw_name() || !std::strcmp(raw_name(), rhs.raw_name()); #else - return *data_ == *rhs.data_; + return !!(*data_ == *rhs.data_); #endif }