update ArxContainer

master
Hideaki Tai 4 years ago
parent 310540358b
commit 4d7678dd9b

@ -17,7 +17,8 @@
#define ARX_SYSTEM_HAS_INCLUDE(x) 1 #define ARX_SYSTEM_HAS_INCLUDE(x) 1
#elif defined(ARDUINO_SAM_DUE) #elif defined(ARDUINO_SAM_DUE)
// Arduino DUE's GCC version is 4.8.3 (GCC < 5.0). // Arduino DUE's GCC version is 4.8.3 (GCC < 5.0).
// And it has not libstdc++ // If libstdc++ is used, std::function causes error
// so currently we disable libstdc++ and use ArxTypeTraits
#define ARX_SYSTEM_HAS_INCLUDE(x) 0 #define ARX_SYSTEM_HAS_INCLUDE(x) 0
#else #else
#error "Compiler does not support __has_include, please report a bug against the ArxTypeTraits library about this." #error "Compiler does not support __has_include, please report a bug against the ArxTypeTraits library about this."

@ -7,7 +7,7 @@
// define it when <initializer_list> is really not available (e.g. // define it when <initializer_list> is really not available (e.g.
// ArduinoSTL is C++98 but *does* define <initializer_list>) and not // ArduinoSTL is C++98 but *does* define <initializer_list>) and not
// already defined (e.g. by ArxContainer). // already defined (e.g. by ArxContainer).
#if __has_include(<initializer_list>) #if ARX_SYSTEM_HAS_INCLUDE(<initializer_list>)
#include <initializer_list> #include <initializer_list>
#else #else
namespace std { namespace std {

@ -163,6 +163,8 @@ PRs are welcome!
- [ArtNet](https://github.com/hideakitai/ArtNet) - [ArtNet](https://github.com/hideakitai/ArtNet)
- [Tween](https://github.com/hideakitai/Tween) - [Tween](https://github.com/hideakitai/Tween)
- [TimeProfiler](https://github.com/hideakitai/TimeProfiler) - [TimeProfiler](https://github.com/hideakitai/TimeProfiler)
- [SceneManager](https://github.com/hideakitai/SceneManager)
- [TaskManager](https://github.com/hideakitai/TaskManager)
## License ## License

Loading…
Cancel
Save