Skip to content

Commit

Permalink
>= 1.64, not > 1.64
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 authored and GregoryLundberg committed Nov 30, 2017
1 parent c9b1d15 commit 37faf73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/serialization/string_view.hpp
Expand Up @@ -22,13 +22,13 @@ that class. */
#include <boost/version.hpp>

/*
* Boost 1.61 already has string_view, but it fails to compile on some compilers.
* The problem is that in string_view::at's ternary expression,
* Earlier versions already have string_view, but fail to compile on some
* compilers. The problem is that in string_view::at's ternary expression,
* BOOST_THROW_EXCEPTION is not seen as a throw-expression. If a ternary branch
* is not a throw-expression, it must be of the same type as the other branch,
* necessitating the ', res[0]' workaround.
*/
#if BOOST_VERSION > 106400
#if BOOST_VERSION >= 106400

/* Boost string_view is available, so we can just use it. */
#include <boost/utility/string_view.hpp>
Expand Down

0 comments on commit 37faf73

Please sign in to comment.