Tag: stdvector
-
Can one forward declare a function taking a vector of incomplete type with a default value?
6 Below code snippet demonstrates some real issue I faced recently in my program: #include<vector> class A; void f( const std::vector<A> & = {} ); There is an incomplete class A, and a function declaration taking a vector of A‘s with empty default value. And the function is not even called anywhere. It works fine…