[Bug c++/48657] New: could not convert template argument ‘VectorDimension’ to ‘unsigned int’
daviddoria at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Apr 18 01:43:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: daviddoria@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;
More information about the Gcc-bugs
mailing list