可変引数テンプレートのパラメータパックを、関数の例外仕様に
まとめて指定することができるようです。
#include <stdexcept> using namespace std; template <class... Exceptions> void foo() throw (Exceptions...) {} foo<out_of_range, invalid_argument, domain_error>();
誰か使うのか・・・。
可変引数テンプレートのパラメータパックを、関数の例外仕様に
まとめて指定することができるようです。
#include <stdexcept> using namespace std; template <class... Exceptions> void foo() throw (Exceptions...) {} foo<out_of_range, invalid_argument, domain_error>();
誰か使うのか・・・。