Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

I believe this to be a bug in VS2013

$
0
0

According to 12.3.1/2 this should compile in VS2013

struct A
{
    A() = default;
    explicit A(A const&) {}
};

int main()
{
    A a;
    A b = static_cast<A>(1);
    A c = A(1);
}



Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>