Opened 6 years ago

Closed 4 years ago

#12538 closed Bugs (duplicate)

Compiler error when assigning result of list_of to std::list on GCC

Reported by: ldionne.2@… Owned by: James E. King, III
Milestone: To Be Determined Component: assign
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:

Description

The following program fails to compile on GCC:

#include <boost/assign/list_of.hpp>
#include <list>

int main() {
    std::list<int> l;
    l = boost::assign::list_of(1)(2);
}

http://melpon.org/wandbox/permlink/wF67wEUtRv6betkO

Change History (4)

comment:1 by James E. King, III, 4 years ago

Owner: changed from Thorsten Ottosen to James E. King, III

comment:2 by James E. King, III, 4 years ago

Status: newassigned

comment:3 by James E. King, III, 4 years ago

comment:4 by James E. King, III, 4 years ago

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