mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add test optional
This commit is contained in:
parent
f9d8908f95
commit
5aa4cf8cbe
5 changed files with 338 additions and 13 deletions
|
@ -13,7 +13,7 @@ namespace sprout {
|
|||
//
|
||||
template<typename Elem, typename Traits, typename T>
|
||||
inline std::basic_istream<Elem, Traits>&
|
||||
operator<<(std::basic_istream<Elem, Traits>& lhs, sprout::optional<T>& rhs) {
|
||||
operator>>(std::basic_istream<Elem, Traits>& lhs, sprout::optional<T>& rhs) {
|
||||
if (lhs.good()) {
|
||||
int d = lhs.get();
|
||||
if (d == ' ') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue