Skip to content

Commit

Permalink
Remove incorrect noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnycase committed Nov 2, 2018
1 parent 5cb6afc commit 55b44be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/freertos/include/kernel/object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class object_ptr
}

template <class... Args>
object_ptr(std::in_place_t, Args &&... args) noexcept
object_ptr(std::in_place_t, Args &&... args)
: obj_(new T(std::forward<Args>(args)...))
{
}
Expand Down Expand Up @@ -145,14 +145,14 @@ class object_ptr
T &operator*() const noexcept { return *obj_; }

template <class U>
object_ptr<U> as() const
object_ptr<U> as() const noexcept
{
auto ptr = dynamic_cast<U *>(obj_);
return object_ptr<U>(ptr);
}

template <class U>
bool is() const
bool is() const noexcept
{
auto ptr = dynamic_cast<U *>(obj_);
return ptr;
Expand Down

0 comments on commit 55b44be

Please sign in to comment.