In VS2015u2 the following code compiled fine.
class Foo {
public:
[[deprecated]] Foo(std::string);
Foo();
};
Under VS2015u3, I am getting an error:
C2416: attribute 'deprecated' cannot be applied in this context
This works in GCC 5.2 and it worked in earlier versions of VS2015. Granted, the deprecated attribute did not actually trigger a warning in VS2015, but that was not a significant concern.
Am I misunderstanding how to apply attributes to constructors? Or is VS2015u3 broken in this regard?