Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
add ostream operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Raab committed Feb 10, 2015
1 parent d8c67a7 commit 5852353
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/bindings/cpp/include/kdbvalue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,27 @@ class Value :
mutable Key m_key;
};

template <typename T,
typename PolicySetter1,
typename PolicySetter2,
typename PolicySetter3,
typename PolicySetter4,
typename PolicySetter5,
typename PolicySetter6
>
std::ostream & operator << (std::ostream & os, Value<T,
PolicySetter1,
PolicySetter2,
PolicySetter3,
PolicySetter4,
PolicySetter5,
PolicySetter6
> const & v)
{
os << static_cast<T>(v);
return os;
}

}

#endif

0 comments on commit 5852353

Please sign in to comment.