Lor*_*one 8 c++ variadic-functions
void f(int count, ...){
//whatever
}
struct somestruct{
size_t a, b, c;
};
int main() {
somestruct s;
f(1, s); //what is actually passed?
}
Run Code Online (Sandbox Code Playgroud)
是整个struct复制并传递到堆栈?如果是这样,复制构造函数被称为?指针是否通过?这样安全吗?