Guys take a look at this masterpiece:#include "stdafx.h"#include <iostream>#include <cmath>template<int Mantissa, int Exponent>struct AllocFactorScientific{static long double getFactor() { return Mantissa * ::pow(10.0,Exponent); }};template<long double&& factor>struct AllocFactorLinear { static long double getFactor() { return factor; }};int _tmain(int argc, _TCHAR* argv[]){ AllocFactorScientific<102,-2> scientific; std::cout << scientific.getFactor() << '\n'; AllocFactorLinear<1.03> linear; std::cout << linear.getFactor() << '\n'; return 0;}It does compile but IntelliSense shows an error. The $100 Q is can I have declaration of template in this form: template<double&& someValue> ..?Thank you.
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results