Opened 6 years ago

Last modified 6 years ago

#12352 new Bugs

factory object fails to be assigned to function object when deducing constructor argument (C++11 only)

Reported by: Matthew Hoops <matthewthoops@…> Owned by: No-Maintainer
Milestone: To Be Determined Component: functional
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:

Description

When assigning a constructed boost::factory to a boost::function and having the factory template automatically deduce the constructor parameter, it fails to build in C++11, but not C++98.

I used g++ 5.4.0 on Linux, x86-64.

I'm attaching both my minimal test program and the error output.

Attachments (2)

boost_factory_bug.cpp (230 bytes ) - added by Matthew Hoops <matthewthoops@…> 6 years ago.
Minimal test case program
boost_factory_bug_comp_error.txt (17.3 KB ) - added by Matthew Hoops <matthewthoops@…> 6 years ago.
g++ error output

Download all attachments as: .zip

Change History (3)

by Matthew Hoops <matthewthoops@…>, 6 years ago

Attachment: boost_factory_bug.cpp added

Minimal test case program

by Matthew Hoops <matthewthoops@…>, 6 years ago

g++ error output

comment:1 by Matthew Hoops <matthewthoops@…>, 6 years ago

Forgot to mention: I'm using the current master to test: 415be65eaebf70d7e007fe8a74802943db91a102. This also happens with 1.60.0.

Note: See TracTickets for help on using tickets.