Template // { enum { val = 1 } By the way, its not partial specialization if True isn't template argument. It is full specialization And since this is full specialization, you cannot define it inside the class, i. E at class-scope.
Full specialization can be defined only at namespace-scope. So define Value primary well as the specialization, at namespace scope Or, you can do this instead: template struct CanPrint { //modified template struct Value { enum { val = 0 }; }; //modified - now its partial specialization template struct Value { enum { val = 1 }; }; enum { value = Value >::val }; //modified here as well } See the online demo : ideone.com/MSG5X.
Template // { enum { val = 1 }; By the way, its not partial specialization if True isn't template argument. It is full specialization . And since this is full specialization, you cannot define it inside the class, i.
E at class-scope. Full specialization can be defined only at namespace-scope. So define Value , primary well as the specialization, at namespace scope.
Or, you can do this instead: template struct CanPrint { //modified template struct Value { enum { val = 0 }; }; //modified - now its partial specialization template struct Value { enum { val = 1 }; }; enum { value = Value >::val }; //modified here as well }; See the online demo : ideone.com/MSG5X.
1 Indeed. Yet I can't make a full specialization inside a namespace-scope. Do I really HAVE to get out of that namespace?
– The-Snake Jun 18 at 9:03 @The-Snake:. Yes – Nawaz Jun 18 at 9:10.
Template // note the empty struct Value { enum { val = 1 }; }; You only list parameters for partial specializations: template struct X; template struct X {...}; template struct X, U> {...}; Not for fully specializations: template struct X {...}.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.