-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add flag * Update optional_test.cc * Update cmake-multi-platform.yml * Fix std::tuple_xxx on clang * Update cmake-multi-platform.yml * Update cmake-multi-platform.yml * fix * Update CMakeLists.txt * Update specialize_tuple.h * Update specialize_tuple.h * Update specialize_tuple.h * Update specialize_tuple.h * Update specialize_tuple.h * Update specialize_tuple.h * Fix optional and add test * Update optional_test.cc * Update CMakeLists.txt * Update CMakeLists.txt * Update optional_test.cc * Update optional.h
- Loading branch information
Showing
8 changed files
with
443 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#/** | ||
# * Created by YongGyu Lee on 2024. 6. 20.. | ||
# */ | ||
# | ||
#ifndef PREVIEW_TUPLE_SPECIALIZE_TUPLE_H_ | ||
#define PREVIEW_TUPLE_SPECIALIZE_TUPLE_H_ | ||
# | ||
#include "preview/__core/android_version.h" | ||
# | ||
#define PREVIEW_STD_TUPLE_SIZE_STRUCT struct | ||
#define PREVIEW_STD_TUPLE_ELEMENT_STRUCT struct | ||
# | ||
#if defined(__clang__) | ||
# if (__clang_major__ < 8) || (defined(PREVIEW_NDK_VERSION_MAJOR) && PREVIEW_NDK_VERSION_MAJOR < 20) | ||
# undef PREVIEW_STD_TUPLE_SIZE_STRUCT | ||
# define PREVIEW_STD_TUPLE_SIZE_STRUCT class | ||
# endif | ||
# if __clang_major__ < 9 | ||
# undef PREVIEW_STD_TUPLE_ELEMENT_STRUCT | ||
# define PREVIEW_STD_TUPLE_ELEMENT_STRUCT class | ||
# endif | ||
#endif | ||
# | ||
#include <tuple> | ||
|
||
#define PREVIEW_SPECIALIZE_STD_TUPLE_SIZE(...) \ | ||
PREVIEW_STD_TUPLE_SIZE_STRUCT std::tuple_size<__VA_ARGS__> | ||
|
||
#define PREVIEW_SPECIALIZE_STD_TUPLE_ELEMENT(...) \ | ||
PREVIEW_STD_TUPLE_ELEMENT_STRUCT std::tuple_element<__VA_ARGS__> | ||
|
||
# endif // PREVIEW_TUPLE_SPECIALIZE_TUPLE_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.