From: Nicholas Ormrod <njormrod@fb.com>
Date: Fri, 31 Oct 2014 17:50:05 +0000 (-0700)
Subject: throw() specs deprecated
X-Git-Tag: v0.22.0~214
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9e2f2ec80f516c0c8430c48506fd9f41461a2a9b;p=folly.git

throw() specs deprecated

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
---

diff --git a/folly/test/function_benchmark/test_functions.cpp b/folly/test/function_benchmark/test_functions.cpp
index d5c4ddd4..4c9a74de 100644
--- a/folly/test/function_benchmark/test_functions.cpp
+++ b/folly/test/function_benchmark/test_functions.cpp
@@ -25,9 +25,9 @@
 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();
   }