how to instantiate template of template

Posted by aaa on Stack Overflow See other posts from Stack Overflow or by aaa
Published on 2010-04-10T20:23:50Z Indexed on 2010/04/10 20:33 UTC
Read the original article Hit count: 749

Filed under:
|
|

hello

I have template that looks like this:

100 template<size_t A0, size_t A1, size_t A2, size_t A3>
101 struct mask {
103     template<size_t B0, size_t B1, size_t B2, size_t B3>
104     struct compare {
105         static const bool value = (A0 == B0 && A1 == B1 && A2 == B2 && A3 == B3);
106     };
107 };
...
120 const typename boost::enable_if_c<
121 mask<a,b,c,d>::compare<2,3,0,1>::value || ...>::type

I am trying to instantiate compare structure. How do I do get value in line 121?

© Stack Overflow or respective owner

Related posts about c++

Related posts about template