add sprout::string_ref

support conversion array-like container iterator to pointer
This commit is contained in:
bolero-MURAKAMI 2013-02-19 02:49:10 +09:00
parent fa1d769bdf
commit 1ef8a6a63b
64 changed files with 1570 additions and 254 deletions

View file

@ -1,7 +1,6 @@
#ifndef SPROUT_LIBS_STRING_TEST_STRING_CPP
#define SPROUT_LIBS_STRING_TEST_STRING_CPP
#include <cstring>
#include <sstream>
#include <type_traits>
#include <sprout/string.hpp>
@ -48,7 +47,7 @@ namespace testspr {
// empty
TESTSPR_BOTH_ASSERT(!str1.empty());
TESTSPR_BOTH_ASSERT((string_t<0>::type().empty()));
TESTSPR_BOTH_ASSERT((sprout::string_t<0>::type().empty()));
// max_size
TESTSPR_BOTH_ASSERT(str1.max_size() == 10);