Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sqlite_orm version 1.9 #5225

Merged
merged 2 commits into from
Sep 14, 2024
Merged

Conversation

KochabStar
Copy link
Contributor

add new version

@star-hengxing
Copy link
Contributor

/home/runner/.xmake/packages/s/sqlite_orm/v1.9/725a69d7ed4f41639aa5fb2cdbb345da/include/sqlite_orm/sqlite_orm.h:1321:20: error: cannot initialize return object of type 'size_t' (aka 'unsigned long') with an lvalue of type '<dependent type>'
 1321 |             return Idx...[Pos];
      |                    ^~~~~~~~~~~

I think this is clang bug.

#if __cpp_pack_indexing >= 202311L
#define SQLITE_ORM_PACK_INDEXING_SUPPORTED
#endif

#if defined(SQLITE_ORM_PACK_INDEXING_SUPPORTED)
        /**
         *  Get the index value of an `index_sequence` at a specific position.
         */
        template<size_t Pos, size_t... Idx>
        SQLITE_ORM_CONSTEVAL size_t index_sequence_value_at(std::index_sequence<Idx...>) {
            return Idx...[Pos];
        }
#elif defined(SQLITE_ORM_FOLD_EXPRESSIONS_SUPPORTED)
        /**
         *  Get the index value of an `index_sequence` at a specific position.
         */
        template<size_t Pos, size_t... Idx>
        SQLITE_ORM_CONSTEVAL size_t index_sequence_value_at(std::index_sequence<Idx...>) {
            static_assert(Pos < sizeof...(Idx));
#ifdef SQLITE_ORM_CONSTEVAL_SUPPORTED
            size_t result;
#else
            size_t result = 0;
#endif

@star-hengxing star-hengxing merged commit ec608a9 into xmake-io:dev Sep 14, 2024
63 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants