Faux Variadic On Visual C 11 (Visual Studio 2012)

Yes yes yes

That’s the answer if you ask me whether I have personal problem with VC 11 (Visual Studio 2012).

Another problem which I found interesting is how variadic list was implemented in VC11, they called in Faux Variadic. In short this feature is not yet fully supported, or you could say it works via workaround. However this workaround have some side effects, the one most affects me is the number of maximum argument was reduced to reduce compiler memory consumption.

Normally we would have function with variadic list ¬†handles 6 even 10 argument, however you couldn’t do it on VC 11 by default. In order to allow this scenario you have to define _VARIADIC_MAX, the default number is 5. This surely comes with side effects, compiler would eat more memory than before.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s