Allow C++11 "explicit constexpr"

This commit is contained in:
Olly Betts 2015-01-08 15:56:50 +13:00
commit 87bdaa3910
3 changed files with 7 additions and 0 deletions

View file

@ -18,6 +18,8 @@ struct ConstExpressions {
static const int LLL = 300;
constexpr int MMM() { return 400; }
constexpr const int NNN() { return 500; }
// Regression test for https://github.com/swig/swig/issues/284 :
explicit constexpr ConstExpressions(int) { }
};
%}