/tmp/fuchsia.cc:5:28: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
std::vector<int> vec = {1,2,3,4};
^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_vector.h:626:7: note: default parameter was declared here
const allocator_type& __a = allocator_type())
I'm not sure if this is by design, but I think it really confuses me.
Runs:
Warns:
Please check out https://godbolt.org/z/577Ga1Wbc