C++ ретвитнул

Quick C++ quiz: what does this do?
#include <stdio.h>
void f(float&&) { puts("float"); }
void f(int&&) { puts("int"); }
void g(auto &&...v) { (f(v), ...); }
int main() { g(1.0f, 2); }
English
C++
374 posts

@c_plus_plus
Twitter link for the official C++ Facebook page





















