add shrink_to_fit, unmove

This commit is contained in:
bolero-MURAKAMI 2014-07-22 09:33:13 +09:00
parent 22c3f6e132
commit ae77da19e1
12 changed files with 192 additions and 45 deletions

View file

@ -117,7 +117,7 @@ namespace sprout {
namespace sprout {
namespace detail {
inline bool
inline SPROUT_NON_CONSTEXPR bool
assertion_failed_msg(char const* formatted, char const* msg) {
return (std::cerr << formatted << ": " << msg << std::endl), std::abort(), false;
}
@ -184,7 +184,7 @@ namespace sprout {
namespace sprout {
namespace detail {
inline bool
inline SPROUT_NON_CONSTEXPR bool
assertion_failed(bool cond, char const* formatted, char const* expr, char const* function, char const* file, long line) {
return cond ? true
: ((void)sprout::assertion_failed(sprout::assertion_info(expr, function, file, line)), false)
@ -210,7 +210,7 @@ namespace sprout {
namespace sprout {
namespace detail {
inline bool
inline SPROUT_NON_CONSTEXPR bool
assertion_failed(char const* formatted) {
return (std::cerr << formatted << std::endl), std::abort(), false;
}