throw() specs deprecated
authorNicholas Ormrod <njormrod@fb.com>
Fri, 31 Oct 2014 17:50:05 +0000 (10:50 -0700)
committerPavlo Kushnir <pavlo@fb.com>
Sat, 8 Nov 2014 02:16:48 +0000 (18:16 -0800)
Summary: Switch to noexcept

Test Plan: run unit tests

Reviewed By: robbert@fb.com, andrei.alexandrescu@fb.com

Subscribers: aalexandre, sdwilsh, njormrod, folly-diffs@

FB internal diff: D1644135

Tasks: 5486739

Signature: t1:1644135:1414715537:22e1baf91ab7e3250b0b2a460a12d56783f2baed

folly/test/function_benchmark/test_functions.cpp

index d5c4ddd4998fb346ae3068d27173bc534a9bfb7a..4c9a74de1d35927caaaac4b738e138039348cc6e 100644 (file)
@@ -25,9 +25,9 @@
 class Exception : public std::exception {
  public:
   explicit Exception(const std::string& value) : value_(value) {}
 class Exception : public std::exception {
  public:
   explicit Exception(const std::string& value) : value_(value) {}
-  virtual ~Exception(void) throw() {}
+  virtual ~Exception(void) noexcept {}
 
 
-  virtual const char *what(void) const throw() {
+  virtual const char *what(void) const noexcept {
     return value_.c_str();
   }
 
     return value_.c_str();
   }