We do not need to mark explicitly funtions defined in a class inline.

See [dcl.inline].4: "A function defined within a class definition is an inline
function."
This commit is contained in:
Vassil Vassilev 2018-11-16 11:14:40 +01:00 committed by sftnight
parent 4336ae74c7
commit ce34bd7abf
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ namespace runtime {
Interpreter* Interp);
///\brief Returns the created object.
inline void* getMemory() const { return m_Memory; }
void* getMemory() const { return m_Memory; }
/// \brief Clears up the free store, when LifetimeHandler goes out of
/// scope.

View File

@ -267,7 +267,7 @@ namespace cling {
/// casting the value of builtins (except void), enums and pointers.
/// Values referencing an object are treated as pointers to the object.
template <typename T>
inline T simplisticCastAs() const {
T simplisticCastAs() const {
return CastFwd<T>::cast(*this);
}