Compilation - at least in MSVC - of custom string_view.hpp was not properly recognising the installed boost version, causing compiler warnings of redefinition of BOOST_CXX14_CONSTEXPR.
This commit is contained in:
parent
b0f15a08c4
commit
df6a775ee8
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,8 @@ that class. */
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <boost/version.hpp>
|
||||
|
||||
#if BOOST_VERSION > 106100
|
||||
|
||||
/* Boost string_view is available, so we can just use it. */
|
||||
|
@ -42,7 +44,6 @@ using string_view = boost::string_view;
|
|||
#include <cstring>
|
||||
#include <iosfwd>
|
||||
|
||||
|
||||
#if BOOST_VERSION <= 105600
|
||||
# define BOOST_CXX14_CONSTEXPR
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue