float const expression is allowed as template argument - by Xiang Fan

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


0
0
Sign in
to vote
ID 296008 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 8/31/2007 12:27:26 AM
Access Restriction Public

Description

In the standard, it is said that template argument only allow "an integral constant-expression of integral or enumeration type", but VC will simple cast the float constant to int and then compile the code.

See the repro step for details
Sign in to post a comment.
Posted by Microsoft on 8/31/2007 at 11:20 AM
Hi: I can confirm that this is a bug in the Visual C++ compiler. Unfortunately we won't be able to fix this bug this late in the product cycle for Visual C++ 2008. We will though keep the bug in our database and we will look at it again during the development phase of a future release of Visual C++.

Jonathan Caves
Visual C++ Compiler Team
Posted by Microsoft on 8/31/2007 at 12:46 AM
Thanks for your feedback. We are sending this bug to the appropriate group within the Visual Studio Product Team for triage and resolution. Thank you, Visual Studio Product Team.
Posted by Microsoft on 8/31/2007 at 12:42 AM
Thank you for your feedback. We are currently investigating. If this issue is urgent, please call support directly (see http://support.microsoft.com). Thank you, Visual Studio Product Team.