>"Ioannis Vranos" <[EMAIL PROTECTED]> wrote...
>
>> #include <vector>
>>
>>
>> template< template<class> class ContainerTemplate, class ValueType>
>> inline void test(const ValueType &val)
>> {
>>     ContainerTemplate<ValueType> container(val);
>> }
>>
>>
>>
>> int main()
>> {
>>     using namespace std;
>>
>>     test<vector>(10);
>> }
>
>
>No, this is not valid for a simple reason that std::vector is a template
>that has more than one argument.  Your 'ContainerTemplate' template
>template argument has only one argument itself.
>
>

-- 
           Summary: accept-invalid template template argument
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sstrasser at systemhaus-gruppe dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20691

Reply via email to