Still having a little teething trouble with multi_index_container. This code,
#include <string>
#include
EmployeeSet;
Employee employees[ ] = {
{ 1, "Adam" },
{ 2, "Craig" },
{ 3, "Brian" },
{ 4, "Dave" },
};
// EmployeeSet eSet( employees, employees + sizeof( employees ) /
sizeof( Employee ) );
EmployeeSet eSet;
std :: copy( employees, employees + sizeof( employees ) / sizeof(
Employee ), std :: back_inserter( eSet ) );
return 0;
}
Gives me an error stating there is no push_back method on the container.
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_iterator.h:364:
error: 'class boost::multi_index::multi_index_con
tainer , mpl_::na, mpl_::na>, boost::multi_index::ordered_non_unique is there something I'm missing out?
Thanks, Rob.