Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

noexcept

$
0
0
C++ destructors are noexcept by default, but what about: struct A { A() = default; // noexcept? A(const A &) = default; // noexcept? A(A &&) = default; // noexcept? virtual ~A() = default; // noexcept A &operator=(const A &) = default; // noexcept? A &operator=(A &&) = default; // noexcept? ... }; struct B : A { B() = default; // noexcept? B(const B &) = default; // noexcept? B(B &&) = default; // noexcept? virtual ~B() = default; // noexcept B &operator=(const B &) = default; // noexcept? B &operator=(B &&) = default; // noexcept? ... };

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>