I want to make class with variadic wchar* value arguments. Consider the following example.
template<const wchar_t* ...properties>
class my_iterator{
public:
std::tuple<std::wstring...> get(); // quantity of wstrings depend on quantity of template parameters
};
I want to use that like the following
my_iterator<L"hello", L"world"> inst(object_collection);
while(inst.next()){
auto x = inst.get();
}
But I receive compile error, when I instantiate the class.
error C2762: 'my_iterator': invalid expression as a template argument for 'properties'
What's wrong and what to do?