Fix some cases of C++11 exception specifications on constructors with =default or =delete

This commit is contained in:
William S Fulton 2013-11-22 00:12:33 +00:00
commit fcd0480364
3 changed files with 19 additions and 2 deletions

View file

@ -69,4 +69,13 @@ struct moveonly {
moveonly& operator=(moveonly&&) = default;
~moveonly() = default;
};
struct ConstructorThrow {
ConstructorThrow() throw() = default;
ConstructorThrow(const ConstructorThrow&) throw() = delete;
ConstructorThrow(ConstructorThrow&&) throw() = delete;
ConstructorThrow& operator=(const ConstructorThrow&) throw() = delete;
~ConstructorThrow() throw() = default;
};
%}