Skip to content

Commit

Permalink
fixed bug for compile in gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyu1018 committed Nov 6, 2016
1 parent 3e39df3 commit c26d536
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dependencies/common/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ class optional
return *((T*)(&m_data));
}

throw std::exception("");
std::logic_error ex("Dependencies/common/optional.hpp::line 72 not init");
throw std::exception(ex);
}

bool operator == (const optional<T>& rhs) const
Expand Down

0 comments on commit c26d536

Please sign in to comment.