fix to_string

fix from_string
fix filename typo
This commit is contained in:
bolero-MURAKAMI 2012-04-16 15:33:29 +09:00
parent c901c3058a
commit 09b4b56fad
6 changed files with 75 additions and 67 deletions

View file

@ -122,7 +122,7 @@ namespace sprout {
typename sprout::enabler_if<std::is_integral<IntType>::value>::type = sprout::enabler
>
inline SPROUT_CONSTEXPR IntType from_string(sprout::basic_string<Elem, N, Traits> const& str, std::size_t* idx) {
return sprout::string_to_int<IntType>(str, idx);
return sprout::string_to_int<IntType>(str, idx, 0);
}
template<
typename IntType,
@ -132,7 +132,7 @@ namespace sprout {
typename sprout::enabler_if<std::is_integral<IntType>::value>::type = sprout::enabler
>
inline SPROUT_CONSTEXPR IntType from_string(sprout::basic_string<Elem, N, Traits> const& str) {
return sprout::string_to_int<IntType>(str);
return sprout::string_to_int<IntType>(str, 0);
}
} // namespace sprout