mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Potential fix for C++20 std::set::* ambiguity
(until C++20) bool empty() const noexcept; (since C++20) [[nodiscard]] bool empty() const noexcept;
This commit is contained in:
parent
22829e96b1
commit
9914732004
1 changed files with 3 additions and 2 deletions
|
|
@ -1899,11 +1899,12 @@ public:
|
||||||
Class<std::set<T> > beginStdSet (char const* name)
|
Class<std::set<T> > beginStdSet (char const* name)
|
||||||
{
|
{
|
||||||
typedef std::set<T> LT;
|
typedef std::set<T> LT;
|
||||||
|
typedef typename LT::size_type T_SIZE;
|
||||||
return beginClass<LT> (name)
|
return beginClass<LT> (name)
|
||||||
.addVoidConstructor ()
|
.addVoidConstructor ()
|
||||||
.addFunction ("clear", (void (LT::*)())<::clear)
|
.addFunction ("clear", (void (LT::*)())<::clear)
|
||||||
.addFunction ("empty", <::empty)
|
.addFunction ("empty", (bool (LT::*)()const)<::empty)
|
||||||
.addFunction ("size", <::size)
|
.addFunction ("size", (T_SIZE (LT::*)()const)<::size)
|
||||||
#if 0 // needs work for AutomationTypeSet (T is-a enum not a class instance)
|
#if 0 // needs work for AutomationTypeSet (T is-a enum not a class instance)
|
||||||
.addExtCFunction ("insert", &CFunc::setInsert<T, LT>)
|
.addExtCFunction ("insert", &CFunc::setInsert<T, LT>)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue