From 2993b4d53e62cbf94acde35cb3a9905562434f08 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Mon, 11 Nov 2013 10:13:01 +0900 Subject: [PATCH] fix for clang3.4 --- sprout/bitset/bitset.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sprout/bitset/bitset.hpp b/sprout/bitset/bitset.hpp index d66213dd..b118493c 100644 --- a/sprout/bitset/bitset.hpp +++ b/sprout/bitset/bitset.hpp @@ -698,9 +698,11 @@ namespace sprout { } SPROUT_CXX14_CONSTEXPR word_type& - getword(std::size_t) SPROUT_NOEXCEPT { + getword(std::size_t, bool c = false) SPROUT_NOEXCEPT { 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 getword(std::size_t) const SPROUT_NOEXCEPT {