Skip to content

Commit

Permalink
replace inline with SG_FORCED_INLINE
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Mar 19, 2018
1 parent ef97350 commit 7b43b50
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/shogun/base/some.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define __SG_SOME_H__

#include <memory>
#include <shogun/base/macros.h>

namespace shogun
{
Expand Down Expand Up @@ -170,24 +171,24 @@ namespace shogun
}

template <class T>
inline T wrap(const T& value)
SG_FORCED_INLINE T wrap(const T& value)
{
return value;
}

inline const char* wrap(const char* ptr)
SG_FORCED_INLINE const char* wrap(const char* ptr)
{
return ptr;
}

template <class T>
inline Some<T> wrap(T* ptr)
SG_FORCED_INLINE Some<T> wrap(T* ptr)
{
return Some<T>::from_raw(ptr);
}

template <class T>
inline Some<T> wrap(const Some<T>& other)
SG_FORCED_INLINE Some<T> wrap(const Some<T>& other)
{
return other;
}
Expand Down

0 comments on commit 7b43b50

Please sign in to comment.