mirror of https://github.com/CGAL/cgal
same modif for lcc
This commit is contained in:
parent
46a35ff642
commit
804f28804d
|
|
@ -309,6 +309,13 @@ namespace CGAL {
|
||||||
{
|
{
|
||||||
CGAL_static_assertion_msg(Helper::template Dimension_index<i>::value>=0,
|
CGAL_static_assertion_msg(Helper::template Dimension_index<i>::value>=0,
|
||||||
"copy_attribute<i> called but i-attributes are disabled.");
|
"copy_attribute<i> called but i-attributes are disabled.");
|
||||||
|
// We need to do a reserve before the emplace in order to avoid a bug of
|
||||||
|
// invalid reference when the container is reallocated.
|
||||||
|
std::get<Helper::template Dimension_index<i>::value>
|
||||||
|
(mattribute_containers).reserve
|
||||||
|
(std::get<Helper::template Dimension_index<i>::value>
|
||||||
|
(mattribute_containers).size()+1);
|
||||||
|
|
||||||
typename Attribute_descriptor<i>::type res=
|
typename Attribute_descriptor<i>::type res=
|
||||||
std::get<Helper::template Dimension_index<i>::value>
|
std::get<Helper::template Dimension_index<i>::value>
|
||||||
(mattribute_containers).emplace(get_attribute<i>(ah));
|
(mattribute_containers).emplace(get_attribute<i>(ah));
|
||||||
|
|
|
||||||
|
|
@ -261,6 +261,13 @@ namespace CGAL {
|
||||||
{
|
{
|
||||||
CGAL_static_assertion_msg(Helper::template Dimension_index<i>::value>=0,
|
CGAL_static_assertion_msg(Helper::template Dimension_index<i>::value>=0,
|
||||||
"copy_attribute<i> called but i-attributes are disabled.");
|
"copy_attribute<i> called but i-attributes are disabled.");
|
||||||
|
// We need to do a reserve before the emplace in order to avoid a bug of
|
||||||
|
// invalid reference when the container is reallocated.
|
||||||
|
std::get<Helper::template Dimension_index<i>::value>
|
||||||
|
(mattribute_containers).reserve
|
||||||
|
(std::get<Helper::template Dimension_index<i>::value>
|
||||||
|
(mattribute_containers).size()+1);
|
||||||
|
|
||||||
typename Attribute_descriptor<i>::type res=
|
typename Attribute_descriptor<i>::type res=
|
||||||
std::get<Helper::template Dimension_index<i>::value>
|
std::get<Helper::template Dimension_index<i>::value>
|
||||||
(mattribute_containers).emplace(get_attribute<i>(ah));
|
(mattribute_containers).emplace(get_attribute<i>(ah));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue