13
0

Fix std::list<hared_ptr<>> front/back methods

Shared pointer reference accessors can't be const
This commit is contained in:
Robin Gareus 2019-05-17 12:07:45 +02:00
parent 3e7e89db8f
commit bed2eb2e33
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1872,8 +1872,8 @@ public:
.addFunction ("empty", &LT::empty)
.addFunction ("size", &LT::size)
.addFunction ("reverse", &LT::reverse)
.addFunction ("front", static_cast<const T& (LT::*)() const>(&LT::front))
.addFunction ("back", static_cast<const T& (LT::*)() const>(&LT::back))
.addFunction ("front", static_cast<T& (LT::*)()>(&LT::front))
.addFunction ("back", static_cast<T& (LT::*)()>(&LT::back))
.addExtCFunction ("iter", &CFunc::listIter<T, LT>)
.addExtCFunction ("table", &CFunc::listToTable<T, LT>);
}