A
Arkaitz Jimenez
Hi all,
Working with the default parameters of a template class:
template <class policy1=defaultPolicy> myClass{}
I'd like as a lib user to be able to instantiate it without lt and gt
symbols <> or with them if a policy change is required.
Say:
//Default
myClass obj;
//Non-DefaultPolicy
myClass<Non-DefaultPolicy> obj;
I don't know if possible but maybe using typedefs is it possible to go
for a second typename that I can instantiate that way.
Currently it is this way:
//Default
myClass<> obj; // Note the "<>"
//Non-DefaultPolicy
myClass<Non-DefaultPolicy> obj;
Thanks
Arkaitz
Working with the default parameters of a template class:
template <class policy1=defaultPolicy> myClass{}
I'd like as a lib user to be able to instantiate it without lt and gt
symbols <> or with them if a policy change is required.
Say:
//Default
myClass obj;
//Non-DefaultPolicy
myClass<Non-DefaultPolicy> obj;
I don't know if possible but maybe using typedefs is it possible to go
for a second typename that I can instantiate that way.
Currently it is this way:
//Default
myClass<> obj; // Note the "<>"
//Non-DefaultPolicy
myClass<Non-DefaultPolicy> obj;
Thanks
Arkaitz