/* * Copyright © 2010 fredoverflow https://stackoverflow.com/a/3177723/1169096 * Copyright © 2019 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at */ #ifndef GEM_IS_POINTER_H_ #define GEM_IS_POINTER_H_ namespace gem { template struct is_pointer_type { enum { value = false }; }; template struct is_pointer_type { enum { value = true }; }; template bool is_pointer(void) { return is_pointer_type::value; } template bool is_pointer(const T&) { return is_pointer_type::value; } }; #endif // GEM_IS_POITNER_H_