@@ -1503,7 +1503,7 @@ class Mesh : public Args...
1503
1503
}
1504
1504
1505
1505
// this function is required in order to get msvc compile
1506
- template <typename Element, typename ...A>
1506
+ template <typename Element, typename ... A>
1507
1507
void updatePointers (
1508
1508
const Element* oldBase,
1509
1509
const Element* newBase,
@@ -1519,36 +1519,34 @@ class Mesh : public Args...
1519
1519
1520
1520
// this function is required in order to get msvc compile
1521
1521
template <typename Cont, typename Element>
1522
- void updatePointers (
1523
- const Element* oldBase,
1524
- const Element* newBase)
1522
+ void updatePointers (const Element* oldBase, const Element* newBase)
1525
1523
{
1526
1524
updatePointers<Cont>(oldBase, newBase, std::array<std::size_t , 0 >(), 0 );
1527
1525
}
1528
1526
1529
1527
// this additional function is necessary because otherwise msvc jumps
1530
1528
// totally the pack expansion if called directly in the function
1531
1529
// updatePointersOfContainerTypeAfterAppend
1532
- template <typename Element, std::size_t N, typename ...A>
1530
+ template <typename Element, std::size_t N, typename ... A>
1533
1531
void updatePointers (
1534
1532
const Element* oldBase,
1535
1533
const Element* newBase,
1536
1534
TypeWrapper<A...>,
1537
- const std::array<std::size_t , N>& sizes = std::array<std::size_t , 0 >(),
1538
- uint offset = 0)
1535
+ const std::array<std::size_t , N>& sizes = std::array<std::size_t , 0 >(),
1536
+ uint offset = 0)
1539
1537
{
1540
1538
(updatePointers<A>(oldBase, newBase, sizes, offset), ...);
1541
1539
}
1542
1540
1543
1541
template <typename Cont, typename Element, std::size_t N>
1544
1542
void updatePointers (
1545
- const Element* oldBase,
1546
- const Element* newBase,
1547
- const std::array<std::size_t , N>& sizes = std::array<std::size_t , 0 >(),
1548
- uint offset = 0)
1543
+ const Element* oldBase,
1544
+ const Element* newBase,
1545
+ const std::array<std::size_t , N>& sizes = std::array<std::size_t , 0 >(),
1546
+ uint offset = 0)
1549
1547
{
1550
1548
if constexpr (mesh::ElementContainerConcept<Cont>) {
1551
- if constexpr (N > 0 ) {
1549
+ if constexpr (N > 0 ) {
1552
1550
using Containers = Mesh<Args...>::Containers;
1553
1551
constexpr uint I = IndexInTypes<Cont, Containers>::value;
1554
1552
static_assert (I >= 0 && I != UINT_NULL);
@@ -1758,7 +1756,7 @@ class Mesh : public Args...
1758
1756
// old base is contained in the array bases, the new base is the
1759
1757
// base of the container
1760
1758
m.updatePointers (
1761
- reinterpret_cast <const ElType *>(bases[I]),
1759
+ reinterpret_cast <const ElType*>(bases[I]),
1762
1760
m.Cont ::vec.data (),
1763
1761
ContainerWrapper ());
1764
1762
}
@@ -1789,7 +1787,7 @@ class Mesh : public Args...
1789
1787
// old base is contained in the array bases, the new base is the
1790
1788
// base of the container
1791
1789
m.updatePointers (
1792
- reinterpret_cast <const ElType *>(bases[I]),
1790
+ reinterpret_cast <const ElType*>(bases[I]),
1793
1791
m.Cont ::vec.data (),
1794
1792
ContainerWrapper (),
1795
1793
sizes,
0 commit comments