Garmaine Staff asked 1 year ago
myNameSpace::functionName(this, {"abc", "abc1"});  // working fine

working fine, but

std::thread(myNameSpace::functionName<ClassName>(this, {"abc", "abc1"})); 
                     //error: invalid use of void expression.

Please suggest me what I am missing here. or how to do it.

namespace myNameSpace {
    template<typename T>
    void functionName(T* cm, std::initializer_list<std::string_view> args) { ... }
}