mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +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)
|
||||
{
|
||||
typedef std::set<T> LT;
|
||||
typedef typename LT::size_type T_SIZE;
|
||||
return beginClass<LT> (name)
|
||||
.addVoidConstructor ()
|
||||
.addFunction ("clear", (void (LT::*)())<::clear)
|
||||
.addFunction ("empty", <::empty)
|
||||
.addFunction ("size", <::size)
|
||||
.addFunction ("empty", (bool (LT::*)()const)<::empty)
|
||||
.addFunction ("size", (T_SIZE (LT::*)()const)<::size)
|
||||
#if 0 // needs work for AutomationTypeSet (T is-a enum not a class instance)
|
||||
.addExtCFunction ("insert", &CFunc::setInsert<T, LT>)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue