Support C++11 variadic templates
Support variadic templates http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2555.pdf
I have created as a separate idea to determine the priority of this feature from the rest of C++11 features
13 comments
-
Markus Kemp commented
It is __2013__ and Microsoft STILL doesn't support many important features of C++11! How long are we supposed to wait?? Until the NEXT C++ standard is out??
-
Ezekiel Warren
commented
I give up on msvc... I'll be back (maybe) when variadic templates are in...
-
Simon Dan
commented
The variadic template and the lambda expressions are both the key features of the C++ 11 STD.
-
Sina Jazayeri
commented
Today I tried using gmock to overcome the lack of a mocking framework in VS2012 - however gmock (and gtest) make extensive use of VT and so the lack of support for this features directly results in lack of support for third party tools that could be used to plug hole is existing products.
-
Phillip Voyle
commented
I love variadic templates - frequently they are useful for wrapping methods. An example would be a mixin class that inherits from it's template parameter. The templated constructor would take several && referenced arguments and forward them using std::forward to the base classes constructor. You could compose several levels of mix-in classes, and still make use of the non-default constructor to acquire resources using RAII given the parameters. One place you might want this is constructing a CComObject without having to also have an 'Initialize' method that you have to call after construction.
Please include this feature.
-
MChiz
commented
+1 for the variadic templates. I think it is one of the coolest features of C++11.
-
David Ikeda commented
+3. While I realize the team has already attempted this and found it to be difficult, I want to express my support for it as it's a very important language feature as it enables a lot of other important things already available (ex: a proper implementation of emplace_back, tuple implemented elegantly without hacks, etc.) I'm not sure how much I'd use the feature directly, but it's a feature that enables a lot of other features.
-
Simon Dan
commented
How is this important?
-- It's just somthing another like Lambda expression or rvalue-ref Forwards.It's also NOT a security-problem's maker because everything 'variadic' is only meanful not at runtime but compiling time.
You can't change the number of template parameters during runtime. So i don't understand why someone in microsoft treated it as another version of variadic-lengthed array. Actually it will be more unsufficiant and cause compiler crashing for stact-overflow error if they insist let their compiler dealing with those simulated codes. -
Death The Iron Bug
commented
I agree: absolutely nesessary feature. I still can't use MS compiler due to this reason: it just does not support a bunch of things I need. GCC supported variadic templates since 2006, MinGW supports 'em too and I use it on Windows.
Only the "native" compiler cannot support new C++ standards. That's weird. -
Cem Kalyoncu
commented
Well, today I needed VT in VS2010. I now have a code which has two implementations. One for VS one for others. Please fix this. We don't want another IE 6
-
Simon Dan
commented
@Arkadiy Shapkin:
They have still no plan to add native V.T. supporting, right?
Even the Intel C++ compiler have the variadic template now.
The MS C++ becomes one of the last few compilers without native variadic template supporting. Do you have any other information source about this to share please? -
Arkadiy Shapkin commented
Herb Sutter about variadic templates http://channel9.msdn.com/posts/GoingNative-Live-at-BUILD-Herb-Sutter-Joanna-Mason-Tony-Goodhew
-
Simon Dan
commented
I think people that need v.t. haven't noticed this place yet...
This feature is unreplaceable, few people using this feature is not because that it's not important but because it can't be simulated easily and hard to read such simulated codes. there is also only small part of the real v.t. feature is able to be simulated, most of people can't waste too much time on how to read the unreadable things.