Skip to content

Commit

Permalink
variant : make operator<< stricter to avoid unexpected instantiations
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed Aug 14, 2014
1 parent 0c8b6b7 commit 7602779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,9 +736,9 @@ ResultType const& get(T const& var)


// operator<<
template <typename charT, typename traits, typename Variant>
template <typename charT, typename traits, typename... Types>
VARIANT_INLINE std::basic_ostream<charT, traits>&
operator<< (std::basic_ostream<charT, traits>& out, Variant const& rhs)
operator<< (std::basic_ostream<charT, traits>& out, variant<Types...> const& rhs)
{
detail::printer<std::basic_ostream<charT, traits>> visitor(out);
apply_visitor(visitor, rhs);
Expand Down

0 comments on commit 7602779

Please sign in to comment.