]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/stacktrace/example/throwing_st.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / stacktrace / example / throwing_st.cpp
index 7d18b8be877b1d06f54a78e6f0f0d91d714bfd96..858a0970038f58f958c043b9ecda9b49ecdc8a16 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright Antony Polukhin, 2016-2017.
+// Copyright Antony Polukhin, 2016-2018.
 //
 // Distributed under the Boost Software License, Version 1.0. (See
 // accompanying file LICENSE_1_0.txt or copy at
@@ -68,8 +68,8 @@ int main() {
         std::cerr << e.what() << '\n';
         const boost::stacktrace::stacktrace* st = boost::get_error_info<traced>(e);
         if (st) {
-            std::cerr << *st << '\n'; /*<-*/ std::exit(0); /*->*/
-        } /*<-*/ std::exit(3); /*->*/
+            std::cerr << *st << '\n'; /*<-*/ return 0; /*->*/
+        } /*<-*/ return 3; /*->*/
     }
     //]