Skip to content

Commit

Permalink
Silence clang-cl -Wdeprecated warning
Browse files Browse the repository at this point in the history
warning: definition of implicit copy constructor for 'error' is deprecated because it has a user-declared destructor [-Wdeprecated]
  • Loading branch information
kimwalisch committed Aug 15, 2018
1 parent 8d8546f commit 3cc9a73
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions calculator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// @author Kim Walisch, <[email protected]>
/// @copyright Copyright (C) 2013-2018 Kim Walisch
/// @license BSD 2-Clause, https://opensource.org/licenses/BSD-2-Clause
/// @version 1.3
/// @version 1.4
///
/// == Supported operators ==
///
Expand Down Expand Up @@ -80,10 +80,7 @@ class error : public std::runtime_error
: std::runtime_error(message),
expr_(expr)
{ }
#if __cplusplus >= 201103L || \
(defined(_MSC_VER) && _MSC_VER >= 1800)
~error() { }
#else
#if __cplusplus < 201103L
~error() throw() { }
#endif
std::string expression() const
Expand Down

0 comments on commit 3cc9a73

Please sign in to comment.