16 Feb
2009
16 Feb
'09
1:14 p.m.
from the C++0x standard, 7.3.3 (5) I gather that it is not possible to write a using statement to import a templated function into the global namespace. E.g.
#include
using template
boost::units::quantity_cast ; will be malformed. The only alternatives I have been able to come up with are 1) Use boost::units::quantity_cast<X>(Y) which is a bit longwinded 2) Write a new quantity_cast in the global namespace, and forward it to the boost::units one.
Is there a better way?
using boost::units::quantity_cast; will do what you want. John.