fix for clang3.4

This commit is contained in:
bolero-MURAKAMI 2013-11-11 10:13:01 +09:00
parent af24ef48a9
commit 2993b4d53e

View file

@ -698,9 +698,11 @@ namespace sprout {
} }
SPROUT_CXX14_CONSTEXPR word_type& SPROUT_CXX14_CONSTEXPR word_type&
getword(std::size_t) SPROUT_NOEXCEPT { getword(std::size_t, bool c = false) SPROUT_NOEXCEPT {
typedef word_type* type; typedef word_type* type;
return throw std::out_of_range("base_bitset::getword"), *type(); return !c ? *type()
: throw std::out_of_range("base_bitset::getword"), *type()
;
} }
SPROUT_CONSTEXPR word_type SPROUT_CONSTEXPR word_type
getword(std::size_t) const SPROUT_NOEXCEPT { getword(std::size_t) const SPROUT_NOEXCEPT {