fork download
  1. template <class Derived>
  2. struct base {
  3. static void f(int i)
  4. noexcept(noexcept(Derived::g(i)))
  5. {
  6. Derived::g(i);
  7. }
  8. };
  9.  
  10. struct derived: base<derived> {
  11. static void g(int) throw() {
  12. }
  13. };
  14.  
  15. int main()
  16. {
  17. derived::f(1);
  18. }
  19.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty