The following code is compiled in VS2015u2.
class Foo { public: [[deprecated]] Foo(std::string); Foo(); };
In VS2015u3, I get an error:
C2416: attribute 'deprecated' cannot be applied in this context
This works in GCC 5.2 and works in earlier versions of VS2015. Of course, the deprecated attribute did not actually raise a warning in VS2015, but this was not a serious problem.
I donβt understand how to apply attributes to constructors? Or is VS2015u3 broken in this regard?
source share