diff options
Diffstat (limited to 'boost/exception/info_tuple.hpp')
-rw-r--r-- | boost/exception/info_tuple.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/boost/exception/info_tuple.hpp b/boost/exception/info_tuple.hpp index 34afe421b1..bf1be15da2 100644 --- a/boost/exception/info_tuple.hpp +++ b/boost/exception/info_tuple.hpp @@ -19,6 +19,30 @@ namespace boost { template < + class E > + inline + E const & + operator<<( + E const & x, + tuple< > const & v ) + { + return x; + } + + template < + class E, + class Tag1,class T1 > + inline + E const & + operator<<( + E const & x, + tuple< + error_info<Tag1,T1> > const & v ) + { + return x << v.template get<0>(); + } + + template < class E, class Tag1,class T1, class Tag2,class T2 > |