例如,像这样:
#include <cstdarg> void my_function(int it=42, ...) { /* va_list/start/arg/end code here */ }
上面的代码究竟在C++中意味着什么?它在G ++中编译得很好.请注意,我无法想象任何有用的情况,甚至它应该做的事情.我只是好奇.
c++ variadic-functions default-arguments
c++ ×1
default-arguments ×1
variadic-functions ×1