template <typename T_>
class my_class {
public:
typedef T_ value_type;
typedef T_ * pointer;
I’m developing a templated class, however because the C++ error detection and intellisence suck for templated stuff, is there a way I can set the template to example int to get the benefit of intellisence, and then when I’m done development just switch it back and fix a couple errors?
I still want my code to be generic and re-writing it as Template Specialization is too much work.
I want to be able to do something like
template <typename T_ = int>
class my_class {
public:
typedef T_ value_type;
typedef T_ * pointer;
I’m not completely sure I understand what you’re trying to accomplish, but you could typedef
T_tointin the class and disable the template statement, either through the pre-processor or commenting it out.