mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 01:26:31 +01:00
warnings: Remove redundant/illegal/undefined-behaviour template-id for constructor
GCC 14 educates us: In file included from ../libs/ardour/ardour/io.h:44, from ../libs/ardour/ardour/route.h:50, from ../libs/ardour/ardour/session.h:92, from ../libs/ctrl-interface/midi_surface/midi_surface.cc:30: ../libs/ardour/ardour/port_set.h:92:37: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 92 | iterator_base<PS,P>(PS& list, DataType type, size_t index) | ^~ ../libs/ardour/ardour/port_set.h:92:37: note: remove the ‘< >’
This commit is contained in:
parent
3cb03d9564
commit
0352ff8c5e
3 changed files with 18 additions and 8 deletions
|
|
@ -71,11 +71,17 @@ public:
|
||||||
class iterator_base
|
class iterator_base
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
iterator_base<BufferType, EventType>(BufferType& b, samplecnt_t o)
|
iterator_base (BufferType& b, samplecnt_t o)
|
||||||
: buffer(&b), offset(o) {}
|
: buffer (&b)
|
||||||
|
, offset (o)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
iterator_base<BufferType, EventType>(const iterator_base<BufferType,EventType>& o)
|
iterator_base (const iterator_base<BufferType, EventType>& o)
|
||||||
: buffer (o.buffer), offset(o.offset) {}
|
: buffer (o.buffer)
|
||||||
|
, offset (o.offset)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
inline iterator_base<BufferType,EventType> operator= (const iterator_base<BufferType,EventType>& o) {
|
inline iterator_base<BufferType,EventType> operator= (const iterator_base<BufferType,EventType>& o) {
|
||||||
if (&o != this) {
|
if (&o != this) {
|
||||||
|
|
|
||||||
|
|
@ -89,8 +89,12 @@ public:
|
||||||
private:
|
private:
|
||||||
friend class PortSet;
|
friend class PortSet;
|
||||||
|
|
||||||
iterator_base<PS,P>(PS& list, DataType type, size_t index)
|
iterator_base (PS& list, DataType type, size_t index)
|
||||||
: _set(list), _type(type), _index(index) {}
|
: _set (list)
|
||||||
|
, _type (type)
|
||||||
|
, _index (index)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
PS& _set;
|
PS& _set;
|
||||||
DataType _type; ///< Ignored if NIL (to iterator over entire set)
|
DataType _type; ///< Ignored if NIL (to iterator over entire set)
|
||||||
|
|
|
||||||
|
|
@ -361,8 +361,8 @@ template <class T>
|
||||||
class UserdataValue : public Userdata
|
class UserdataValue : public Userdata
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
UserdataValue <T> (UserdataValue <T> const&);
|
UserdataValue (UserdataValue<T> const&);
|
||||||
UserdataValue <T> operator= (UserdataValue <T> const&);
|
UserdataValue<T> operator= (UserdataValue<T> const&);
|
||||||
|
|
||||||
char m_storage [sizeof (T)];
|
char m_storage [sizeof (T)];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue