mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 14:54:35 +00:00
shadowing template parameter
This commit is contained in:
parent
187f37b29d
commit
3cde6862e5
@ -11,10 +11,10 @@
|
|||||||
#include "detail/type_mat.hpp"
|
#include "detail/type_mat.hpp"
|
||||||
namespace glm
|
namespace glm
|
||||||
{
|
{
|
||||||
template<typename T> struct is_vec {
|
template<typename X> struct is_vec {
|
||||||
template <length_t L, typename T, precision P, template <length_t, typename, precision> class vecType> static int8 test(vecType<L, T, P>*);
|
template <length_t L, typename T, precision P, template <length_t, typename, precision> class vecType> static int8 test(vecType<L, T, P>*);
|
||||||
static int16 test(...);
|
static int16 test(...);
|
||||||
enum { value = sizeof(test((T*)0)) == sizeof(int8) };
|
enum { value = sizeof(test((X*)0)) == sizeof(int8) };
|
||||||
};
|
};
|
||||||
template<bool B, typename T> struct meta_if { typedef T type; };
|
template<bool B, typename T> struct meta_if { typedef T type; };
|
||||||
template<typename T> struct meta_if<false, T> {};
|
template<typename T> struct meta_if<false, T> {};
|
||||||
|
Loading…
Reference in New Issue
Block a user