null_array 追加

This commit is contained in:
bolero-MURAKAMI 2011-10-06 21:45:01 +09:00
parent a52257117e
commit 6ae26b7470
7 changed files with 680 additions and 11 deletions

View file

@ -123,7 +123,7 @@ namespace sprout {
;
}
SPROUT_CONSTEXPR pointer operator->() const {
return count_ > 0
return count_ != 0
? &random_.result()
: throw "assert(count_ != 0)"
;