[ create a new paste ] login | about

Link: http://codepad.org/1wq8qd7l    [ raw code | fork ]

C++, pasted on Sep 25:
void setValue(int a)
{
}

void setValue(std::string a)
{
}

void setValue(bool a)
{
}

template <class T>
void func(T value)
{
    setValue(value);
}


int main()
{
    func(5);
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: