[Boost-bugs] [Boost C++ Libraries] #6374: operator << for exception doesn't work with 0/1 length tuples

Subject: [Boost-bugs] [Boost C++ Libraries] #6374: operator << for exception doesn't work with 0/1 length tuples
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-10 10:35:56


#6374: operator << for exception doesn't work with 0/1 length tuples
----------------------------------------------------+-----------------------
 Reporter: edA-qa mort-ora-y <edA-qa@…> | Owner: emildotchevski
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: exception
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
----------------------------------------------------+-----------------------
 The operator<< for boost exception allows attaching error_info structures.
 As a convenience it also takes a tuple form of those info structures.
 This tuple form does not work if the tuple is empty (0-length) or also if
 it is 1-length.

 This is a compile-time matching issue.

 The attached code shows the compile error (reduced to the essentials). It
 also includes the workaround which I am currently using (compile with
 WORKAROUND defined). Ideally the non-workaround version should work.

 NOTE: This doesn't appear related to the macro itself. If you simple
 instantiate the exception and error_info tuple and use the operator
 directly the same compile-time error occurs. I've left the MACRO form to
 show the intent.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6374>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC