Skip to content

Commit

Permalink
Downgraded back to Boost 1.82.0 to avoid odd error and replaced `std:…
Browse files Browse the repository at this point in the history
…:optional` in `SharedObject` with `boost::optional`.
  • Loading branch information
gilkeidar committed Apr 30, 2024
1 parent 95b0fd7 commit c334467
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dependencies/boost/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FetchContent_Declare(
Boost
GIT_REPOSITORY https://github.com/boostorg/boost.git
GIT_PROGRESS TRUE
GIT_TAG boost-1.85.0
GIT_TAG boost-1.82.0
)
FetchContent_MakeAvailable(Boost)

Expand Down
6 changes: 3 additions & 3 deletions include/shared/game/sharedobject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ class SharedObject {
ObjectType type;
SharedPhysics physics;

std::optional<Stats> stats;
std::optional<ItemInfo> iteminfo;
std::optional<SharedSolidSurface> solidSurface;
boost::optional<Stats> stats;
boost::optional<ItemInfo> iteminfo;
boost::optional<SharedSolidSurface> solidSurface;

SharedObject() {} // cppcheck-suppress uninitMemberVar
~SharedObject() {}
Expand Down

0 comments on commit c334467

Please sign in to comment.