1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix SPROUT_ASSERT

This commit is contained in:
bolero-MURAKAMI 2013-03-19 16:32:48 +09:00
parent 07f052fb6e
commit 2cb0f08555
3 changed files with 17 additions and 23 deletions

View file

@ -120,12 +120,12 @@ namespace sprout {
return get();
}
SPROUT_CONSTEXPR reference_const_type get() const {
return SPROUT_ASSERT(is_initialized()) ? val.get()
return (SPROUT_ASSERT(is_initialized()), true) ? val.get()
: val.get()
;
}
reference_type get() {
return SPROUT_ASSERT(is_initialized()) ? val.get()
return (SPROUT_ASSERT(is_initialized()), true) ? val.get()
: val.get()
;
}