C++20 readiness

This commit is contained in:
Matthias Koefferlein 2026-02-16 23:49:23 +01:00
parent 3df88ae279
commit b685f89639
8 changed files with 15 additions and 15 deletions

View File

@ -859,7 +859,7 @@ namespace
struct generic_result_adaptor
{
public:
generic_result_adaptor<T> (std::vector<std::unordered_set<T> > *results)
generic_result_adaptor (std::vector<std::unordered_set<T> > *results)
: mp_results (results)
{
m_intermediate.reserve (results->size ());

View File

@ -1758,7 +1758,7 @@ public:
* Creates a local operation which utilizes the operation tree. "node" is the root of the operation tree.
* Ownership of the node is *not* transferred to the local operation.
*/
compound_local_operation<TS, TI, TR> (CompoundRegionOperationNode *node)
compound_local_operation (CompoundRegionOperationNode *node)
: mp_node (node)
{ }
@ -1802,7 +1802,7 @@ public:
* Creates a local operation which utilizes the operation tree. "node" is the root of the operation tree.
* Ownership of the node is *not* transferred to the local operation.
*/
compound_local_operation_with_properties<TS, TI, TR> (CompoundRegionOperationNode *node, db::PropertyConstraint prop_constraint)
compound_local_operation_with_properties (CompoundRegionOperationNode *node, db::PropertyConstraint prop_constraint)
: mp_node (node), m_prop_constraint (prop_constraint)
{
// .. nothing yet ..

View File

@ -69,19 +69,19 @@ class polygon_properties_filter
: public PolygonFilter, public PropertiesFilter
{
public:
polygon_properties_filter<PolygonFilter> (const tl::Variant &name, const tl::GlobPattern &pattern, bool inverse)
polygon_properties_filter (const tl::Variant &name, const tl::GlobPattern &pattern, bool inverse)
: PropertiesFilter (name, pattern, inverse)
{
// .. nothing yet ..
}
polygon_properties_filter<PolygonFilter> (const tl::Variant &name, const tl::Variant &value, bool inverse)
polygon_properties_filter(const tl::Variant &name, const tl::Variant &value, bool inverse)
: PropertiesFilter (name, value, inverse)
{
// .. nothing yet ..
}
polygon_properties_filter<PolygonFilter> (const tl::Variant &name, const tl::Variant &from, const tl::Variant &to, bool inverse)
polygon_properties_filter (const tl::Variant &name, const tl::Variant &from, const tl::Variant &to, bool inverse)
: PropertiesFilter (name, from, to, inverse)
{
// .. nothing yet ..
@ -103,19 +103,19 @@ class generic_properties_filter
: public BasicFilter, public PropertiesFilter
{
public:
generic_properties_filter<BasicFilter, ShapeType> (const tl::Variant &name, const tl::GlobPattern &pattern, bool inverse)
generic_properties_filter (const tl::Variant &name, const tl::GlobPattern &pattern, bool inverse)
: PropertiesFilter (name, pattern, inverse)
{
// .. nothing yet ..
}
generic_properties_filter<BasicFilter, ShapeType> (const tl::Variant &name, const tl::Variant &value, bool inverse)
generic_properties_filter (const tl::Variant &name, const tl::Variant &value, bool inverse)
: PropertiesFilter (name, value, inverse)
{
// .. nothing yet ..
}
generic_properties_filter<BasicFilter, ShapeType> (const tl::Variant &name, const tl::Variant &from, const tl::Variant &to, bool inverse)
generic_properties_filter (const tl::Variant &name, const tl::Variant &from, const tl::Variant &to, bool inverse)
: PropertiesFilter (name, from, to, inverse)
{
// .. nothing yet ..

View File

@ -89,7 +89,7 @@ struct simple_result_inserter
{
typedef TR value_type;
simple_result_inserter<TR> (std::unordered_set<TR> &result)
simple_result_inserter (std::unordered_set<TR> &result)
: mp_result (&result)
{
// .. nothing yet ..

View File

@ -40,7 +40,7 @@ template <class X, class Y> struct address_of;
template<class X>
struct address_of<X, X>
{
address_of<X, X> () : b () { }
address_of () : b () { }
const void *operator() (const X &x) const { b = x; return &b; }
mutable X b;
};

View File

@ -34,7 +34,7 @@ class shape_as_user_object
: public db::DUserObjectBase
{
public:
shape_as_user_object<Sh> (const Sh &sh)
shape_as_user_object (const Sh &sh)
: m_shape (sh)
{ }

View File

@ -217,7 +217,7 @@ public:
/**
* @brief Constructor
*/
Registrar <X> ()
Registrar ()
: mp_first (0)
{
// .. nothing yet ..

View File

@ -175,13 +175,13 @@ public:
typedef typename receivers::iterator receivers_iterator;
#endif
event<_TMPLARGLISTP> ()
event ()
: mp_destroyed_sentinel (0)
{
// .. nothing yet ..
}
~event<_TMPLARGLISTP> ()
~event ()
{
if (mp_destroyed_sentinel) {
*mp_destroyed_sentinel = true;