[Boost-bugs] [Boost C++ Libraries] #12427: Boost Spirit: call of 'swap' is ambiguous

Subject: [Boost-bugs] [Boost C++ Libraries] #12427: Boost Spirit: call of 'swap' is ambiguous
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-01 07:16:39


#12427: Boost Spirit: call of 'swap' is ambiguous
------------------------------+---------------------
 Reporter: hannes@… | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.58.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 I tried to compile a code with boost 1.58 and received the error below.
 The same code compiles with boost 1.55.

 Error:
 /usr/include/boost/spirit/home/support/attributes.hpp:1036:13: error: call
 of overloaded
 â€˜swap(boost::fusion::vector3<boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar> >&,
 boost::fusion::vector3<boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar> >&)’ is ambiguous
          swap(a, b);

 /usr/include/boost/core/swap.hpp:54:8: note: candidate: void
 boost::swap(T1&, T2&) [with T1 =
 boost::fusion::vector3<boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar> >; T2 =
 boost::fusion::vector3<boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar> >]
    void swap(T1& left, T2& right)

 /usr/include/boost/fusion/sequence/intrinsic/swap.hpp:57:5: note:
 candidate: typename boost::fusion::result_of::swap<Seq1, Seq2>::type
 boost::fusion::swap(Seq1&, Seq2&) [with Seq1 =
 boost::fusion::vector3<boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar> >; Seq2 =
 boost::fusion::vector3<boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar>,
 boost::shared_ptr<insight::cad::Scalar> >; typename
 boost::fusion::result_of::swap<Seq1, Seq2>::type = void]
      swap(Seq1& lhs, Seq2& rhs)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12427>
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:20 UTC