Skip to content

Commit

Permalink
Attempt to fix build with GCC 4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive authored and GregoryLundberg committed Nov 30, 2017
1 parent 81d8a8a commit da10a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serialization/string_view.hpp
Expand Up @@ -127,7 +127,7 @@ class basic_string_view {
// element access
BOOST_CONSTEXPR const_reference operator[](size_type pos) const BOOST_NOEXCEPT { return ptr_[pos]; }

BOOST_CONSTEXPR const_reference at(size_t pos) const {
const_reference at(size_t pos) const {
return pos >= len_ ? BOOST_THROW_EXCEPTION(std::out_of_range("boost::string_view::at")), ptr_[0] : ptr_[pos];
}

Expand Down

0 comments on commit da10a11

Please sign in to comment.