Opened 12 years ago

Closed 12 years ago

#4444 closed Bugs (duplicate)

[fusion]joint_view no copy CTOR contrary to doc

Reported by: cppljevans@… Owned by: Joel de Guzman
Milestone: Boost 1.44.0 Component: fusion
Version: Boost 1.44.0 Severity: Problem
Keywords: Cc:

Description

http://svn.boost.org/svn/boost/trunk/boost/fusion/view/joint_view/joint_view.hpp

shows no copy CTOR despite the claim:

JV(jv)

Copy constructs a joint_view from another joint_view, jv.

from:

http://www.boost.org/doc/libs/1_43_0/libs/fusion/doc/html/fusion/view/joint_view.html

Attachments (2)

seq_push_back.cpp (1.3 KB ) - added by cppljevans@… 12 years ago.
source file
seq_push_back.compilation (2.3 KB ) - added by cppljevans@… 12 years ago.
compilation of seq_pushback.cpp attachment

Download all attachments as: .zip

Change History (6)

by cppljevans@…, 12 years ago

Attachment: seq_push_back.cpp added

source file

by cppljevans@…, 12 years ago

Attachment: seq_push_back.compilation added

compilation of seq_pushback.cpp attachment

comment:1 by anonymous, 12 years ago

It may seem like the compiler would generate a copy CTOR; however, compilation of the seq_push_back.cpp attachment give the compile errors shown in the seq_push_back.compilation attachment.

comment:2 by anonymous, 12 years ago

The reformatted error message in compilation attachment is:

seq_push_back.cpp:48: error: No match for ' boost::fusion::joint_view < boost::fusion::list

< boost::fusion::void_, boost::fusion::void_ , boost::fusion::void_, boost::fusion::void_ , boost::fusion::void_, boost::fusion::void_ , boost::fusion::void_, boost::fusion::void_ , boost::fusion::void_, boost::fusion::void_

, const boost::fusion::single_view<int>

::joint_view

( boost::fusion::joint_view

< const boost::fusion::list

< boost::fusion::void_, boost::fusion::void_ , boost::fusion::void_, boost::fusion::void_ , boost::fusion::void_, boost::fusion::void_ , boost::fusion::void_, boost::fusion::void_ , boost::fusion::void_, boost::fusion::void_

, const boost::fusion::single_view<int>

)'

which shows the copy CTOR was not used because it didn't match the 'const list<...>' part of the argument. Maybe the problem is with the result_of<push_back<,> >::type?

comment:3 by cppljevans@…, 12 years ago

The problem has already been reported here:

https://svn.boost.org/trac/boost/ticket/3358

Thanks to Christopher Schmidt for pointing this out:

http://article.gmane.org/gmane.comp.lib.boost.user/60517

comment:4 by Christopher Schmidt, 12 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.