diff --git a/src/include/OSL/variant.h b/src/include/OSL/variant.h index 87d8faa41..5a48e9021 100644 --- a/src/include/OSL/variant.h +++ b/src/include/OSL/variant.h @@ -132,128 +132,97 @@ template class ArgVariant { return false; } - template - T get() const + template T get() const { OSL_DASSERT(false); return T(); } - template<> - inline TBuiltinArg - get() const + template<> inline TBuiltinArg get() const { OSL_DASSERT(is_holding()); return m_builtin; } - template<> - inline bool - get() const + template<> inline bool get() const { OSL_DASSERT(is_holding()); return m_bool; } - template<> - inline int8_t - get() const + template<> inline int8_t get() const { OSL_DASSERT(is_holding()); return m_int8; } - template<> - inline int16_t - get() const + template<> inline int16_t get() const { OSL_DASSERT(is_holding()); return m_int16; } - template<> - inline int32_t - get() const + template<> inline int32_t get() const { OSL_DASSERT(is_holding()); return m_int32; } - template<> - inline int64_t - get() const + template<> inline int64_t get() const { OSL_DASSERT(is_holding()); return m_int64; } - template<> - inline uint8_t - get() const + template<> inline uint8_t get() const { OSL_DASSERT(is_holding()); return m_uint8; } - template<> - inline uint16_t - get() const + template<> inline uint16_t get() const { OSL_DASSERT(is_holding()); return m_uint16; } - template<> - inline uint32_t - get() const + template<> inline uint32_t get() const { OSL_DASSERT(is_holding()); return m_uint32; } - template<> - inline uint64_t - get() const + template<> inline uint64_t get() const { OSL_DASSERT(is_holding()); return m_uint64; } - template<> - inline float - get() const + template<> inline float get() const { OSL_DASSERT(is_holding()); return m_float; } - template<> - inline double - get() const + template<> inline double get() const { OSL_DASSERT(is_holding()); return m_double; } - template<> - inline void* - get() const + template<> inline void* get() const { OSL_DASSERT(is_holding()); return m_ptr; } - template<> - inline ustring - get() const + template<> inline ustring get() const { OSL_DASSERT(is_holding()); return m_ustring; } - template<> - inline ustringhash - get() const + template<> inline ustringhash get() const { OSL_DASSERT(is_holding()); return m_ustringhash;