Skip to content

Commit

Permalink
Add a missing include to optional.h (#273)
Browse files Browse the repository at this point in the history
This caused a compilation error when compiling with exceptions enabled.
  • Loading branch information
hamzasood authored and rparolin committed Mar 29, 2019
1 parent 6089142 commit 4cebe52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/EASTL/optional.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
#include <EASTL/memory.h> // eastl::addressof
#include <EASTL/internal/in_place_t.h> // eastl::in_place_t

#if EASTL_EXCEPTIONS_ENABLED
EA_DISABLE_ALL_VC_WARNINGS()
#include <stdexcept> // std::logic_error.
EA_RESTORE_ALL_VC_WARNINGS()
#endif

#if defined(EASTL_OPTIONAL_ENABLED) && EASTL_OPTIONAL_ENABLED

EA_DISABLE_VC_WARNING(4582 4583) // constructor/destructor is not implicitly called
Expand Down

0 comments on commit 4cebe52

Please sign in to comment.