blob: 337e5a72e595425bf4c48c18266d690bf6983a8a [file] [log] [blame]
#include <vector>
using namespace std;
template <typename T=float> class foo {
public:
foo();
foo(vector<int> v);
private:
vector<int> v;
T t;
};
template <typename T>
foo<T>::foo() :v(), t() {}
template <typename T=float>
foo<T>::foo(vector<int> v_) :v(v_), t() {} // ERROR - default arg for member template
foo<float> a;