mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
fix io implicit conversion Expression to string
This commit is contained in:
parent
b2394e32c5
commit
3d10fd9f18
1 changed files with 12 additions and 0 deletions
|
@ -397,6 +397,10 @@ namespace sprout {
|
|||
}
|
||||
} // namespace flags
|
||||
|
||||
template<std::size_t N, typename Elem = char, typename Expression>
|
||||
inline SPROUT_CONSTEXPR sprout::basic_string<Elem, N>
|
||||
output(Expression const& expr);
|
||||
|
||||
//
|
||||
// nil_expression
|
||||
//
|
||||
|
@ -495,6 +499,14 @@ namespace sprout {
|
|||
SPROUT_CONSTEXPR sprout::io::format_settings const& settings() const {
|
||||
return left().settings();
|
||||
}
|
||||
template<std::size_t N, typename Elem = char>
|
||||
SPROUT_CONSTEXPR sprout::basic_string<Elem, N> output() const {
|
||||
return sprout::io::output<N, Elem>(*this);
|
||||
}
|
||||
template<std::size_t N, typename Elem = char>
|
||||
SPROUT_CONSTEXPR operator sprout::basic_string<Elem, N>() const {
|
||||
return sprout::io::output<N, Elem>(*this);
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue