GameAnalytics / GA-SDK-GODOT

Official GameAnalytics Godot SDK repository
MIT License
42 stars 7 forks source link

Using C++17 to support shared_timed_mutex as used in godot 3.3-stable #13

Closed superoven closed 3 years ago

superoven commented 3 years ago

Some of the C++ idioms in Godot have been modernized in 3.3-stable. This supports building the plugin from this branch.

Previously, it would fail in this fashion:

In file included from modules/gameanalytics/register_types.cpp:2:
In file included from ./core/class_db.h:34:
In file included from ./core/method_bind.h:35:
In file included from ./core/method_ptrcall.h:34:
In file included from ./core/math/transform_2d.h:35:
In file included from ./core/pool_vector.h:37:
./core/os/rw_lock.h:41:15: error: no type named 'shared_timed_mutex' in
      namespace 'std'
        mutable std::shared_timed_mutex mutex;
                ~~~~~^