This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <typename Tp> | |
struct NoPtrType { | |
typedef Tp noref_type; | |
static inline Tp read(Tp value) { return value; } | |
static inline Tp write(Tp& value, noref_type const& in_value) { value = in_value; return in_value; } | |
static inline void release_if_pointer(Tp const&) {} | |
}; | |
template <typename Tp> | |
struct NoPtrType<Tp*> { |
NewerOlder