http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48657
Summary: could not convert template argument ‘VectorDimension’ to ‘unsigned int’ Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: daviddo...@gmail.com Please see this code: http://stackoverflow.com/questions/5697546/converting-const-unsigned-int-to-unsigned-int-in-template-parameter This works fine: typedef Vector< int, 4 > VectorPixelType; Where this produces the error: const unsigned int VectorDimension = 4; typedef Vector< int, VectorDimension > VectorPixelType;