#include <iostream>
struct A
{
void operator()(const char *)
{
std::cout << "void operator()(const char *)" << std::endl;
}
};
int main(int argc, char* argv[])
{
A a;
a{"hi"};
return 0;
}
msvs12 is happy with this code and I can't understand why. Is it bug or something else?
Update: I tried with msvs 2013 (v12.0.31101.0 Update 4)
Yes it is a bug. Here is the ticket for it still opened.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With