template <class T>
class UserdataValue : public Userdata {
private:
UserdataValue<T>(UserdataValue<T> const&);
UserdataValue<T> operator=(UserdataValue<T> const&);
};
when using gcc11.2.0 comiple, error reported: [enter image description here][1]
/home/user00/hxnextSvr2/dep/luabridge/detail/Userdata.h:247:36: error: expected ‘)’ before ‘const’ 247 | UserdataValue(UserdataValue const&); | ~ ^~~~~~ | ) [1]: https://i.stack.imgur.com/LhFbC.png
You should not set the teplate parameter on the copy constructor
thus: