-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error C2661: 'fmt::format' : no overloaded function takes 13 arguments #64
Comments
When using a compiler that doesn't support variadic templates, the number of arguments to the formatting functions is currently limited to 10. Which compiler do you use? |
I am using VS2010, How to expand the support? |
This code compiler is no problem. |
only VS2013 support Variadic templates |
Say so, compiler < vs2013 is only limited in the 10 parameter? |
Right, VS2010 doesn't support variadic templates, so variadic functions are emulated using macros there. I can increase the limit if you like if you are sure that you want to pass more parameters to the formatting functions. Do you have a practical example or you just exploring the limitations? |
Hope to be able to increase the limit, it can meet various requirements. I asked our team to recommend the use of cppformat, and hopes to be able to eliminate the boost.format, will eventually be used in our products, our products have more than 15 parameters of the demand. Thank you, sir. |
igmss.cpp: In function 'int main(int, char*)': [ivm1001@localhost ~]$ gcc -v [ivm1001@localhost ~]$ cat /etc/redhat-release The use of cppformat in the old compiler, the performance will be reduced? |
Thanks for the additional information. I've increased the formatting argument limit on compilers without variadic template support to 15 in d59fbdc . Feel free to reopen this issue if you need more, it's pretty easy to increase further if necessary. The performance shouldn't depend much on whether variadic templates are supported or not, because the code is virtually identical, in both cases an array of arguments is constructed and passed to the main formatting function which is the same for C++11 & older compilers. |
error C2661: 'fmt::format' : no overloaded function takes 13 arguments
The text was updated successfully, but these errors were encountered: