missing construct List from UList
seems to be handled by this one:
template<class T2>
explicit List(const List<T2>&);
only noticed when I tried to inherit constructors from List in a derived class.
seems to be handled by this one:
template<class T2>
explicit List(const List<T2>&);
only noticed when I tried to inherit constructors from List in a derived class.
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Link issues together to show that they're related. Learn more.
IMO the constructor from dissimilar types is rather dangerous:
//- Copy constructor from list containing another type.
template<class T2>
explicit List(const List<T2>&);
mentioned in commit a8c40cc8
Use createList
factory method instead. Eg,
auto scalars = scalarList::createList
(
labels,
[](const label& val){ return 1.5*val; }
);
closed