Skip to content

Commit

Permalink
Try fix static initialisation on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
leemaguire committed May 13, 2024
1 parent e718cc8 commit 3407fe5
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 14 deletions.
8 changes: 2 additions & 6 deletions include/cpprealm/db.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,13 @@ namespace realm {

template <typename T>
struct thread_safe_reference;
}

namespace realm {

struct db {
static inline std::vector<internal::bridge::object_schema> schemas;
internal::bridge::realm m_realm;
explicit db(realm::db_config config)
{
if (!config.get_schema())
config.set_schema(db::schemas);
config.set_schema(schemagen::registered_schemas());
m_realm = internal::bridge::realm(config);
}

Expand Down Expand Up @@ -215,7 +211,7 @@ namespace realm {
inline db open(const db_config& config) {
auto config_copy = config;
if constexpr (sizeof...(Ts) == 0) {
config_copy.set_schema(db::schemas);
config_copy.set_schema(schemagen::registered_schemas());
} else {
std::vector<internal::bridge::object_schema> schema;
(schema.push_back(managed<Ts>::schema.to_core_schema()), ...);
Expand Down
11 changes: 4 additions & 7 deletions include/cpprealm/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,13 +607,10 @@ rbool managed<std::optional<type>>::operator op(const std::optional<type>& rhs)
template <typename, typename> friend struct box; \
template <typename> friend struct ::realm::thread_safe_reference; \
}; \
struct meta_schema_##cls { \
meta_schema_##cls() { \
auto s = managed<cls>::schema.to_core_schema(); \
auto it = std::find(std::begin(realm::db::schemas), std::end(realm::db::schemas), s); \
if (it == std::end(realm::db::schemas)) \
realm::db::schemas.push_back(s); \
} \
struct meta_schema_##cls { \
meta_schema_##cls() { \
realm::schemagen::registered_schemas(managed<cls>::schema.to_core_schema()); \
} \
}; \
static inline meta_schema_##cls _meta_schema_##cls{};

Expand Down
10 changes: 9 additions & 1 deletion include/cpprealm/schema.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,17 @@ namespace realm {
};
}


// MARK: schema
namespace schemagen {
/**
* @brief Internal use only, for use with automatic schema discovery.
*
* @param schema Optionally append a new object schema to the
* registered schemas if it does not already exist.
* @return A vector of object schemas
*/
std::vector<internal::bridge::object_schema> registered_schemas(const std::optional<internal::bridge::object_schema>& schema = std::nullopt);

template <auto Ptr, bool IsPrimaryKey = false>
struct property {
using Result = typename internal::persisted_type_extractor<typename internal::ptr_type_extractor<Ptr>::member_type>::Result;
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ set(SOURCES
cpprealm/managed_uuid.cpp
cpprealm/types.cpp
cpprealm/flex_sync.cpp
cpprealm/schema.cpp
cpprealm/internal/bridge/async_open_task.cpp
cpprealm/internal/bridge/binary.cpp
cpprealm/internal/bridge/col_key.cpp
Expand Down
20 changes: 20 additions & 0 deletions src/cpprealm/schema.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <cpprealm/schema.hpp>

namespace realm {
namespace schemagen {

std::mutex schema_mtx;

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Release (gcc 8)

‘mutex’ in namespace ‘std’ does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Debug (gcc 8)

‘mutex’ in namespace ‘std’ does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (clang 15)

no type named 'mutex' in namespace 'std'

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (clang 15)

no type named 'mutex' in namespace 'std'

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 8.3)

'mutex' in namespace 'std' does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 12.1)

'mutex' in namespace 'std' does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 8.3)

'mutex' in namespace 'std' does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 11.1)

'mutex' in namespace 'std' does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 9.1)

'mutex' in namespace 'std' does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 10.1)

'mutex' in namespace 'std' does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 10.1)

'mutex' in namespace 'std' does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 11.1)

'mutex' in namespace 'std' does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 12.1)

'mutex' in namespace 'std' does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 9.1)

'mutex' in namespace 'std' does not name a type

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Debug

'mutex': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Debug

missing type specifier - int assumed. Note: C++ does not support default-int [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Debug

syntax error: missing ';' before identifier 'schema_mtx' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Debug

'mutex': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Debug

missing type specifier - int assumed. Note: C++ does not support default-int [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Debug

syntax error: missing ';' before identifier 'schema_mtx' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Release

'mutex': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Release

missing type specifier - int assumed. Note: C++ does not support default-int [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Release

syntax error: missing ';' before identifier 'schema_mtx' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Release

'mutex': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Release

missing type specifier - int assumed. Note: C++ does not support default-int [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 6 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Release

syntax error: missing ';' before identifier 'schema_mtx' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

std::vector<internal::bridge::object_schema> registered_schemas(const std::optional<internal::bridge::object_schema>& schema) {
static std::vector<internal::bridge::object_schema> schemas;
std::lock_guard<std::mutex> lock(schema_mtx);

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Release (gcc 8)

‘lock_guard’ is not a member of ‘std’

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Release (gcc 8)

‘mutex’ is not a member of ‘std’

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Release (gcc 8)

‘schema_mtx’ was not declared in this scope

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Release (gcc 8)

‘lock’ was not declared in this scope

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Debug (gcc 8)

‘lock_guard’ is not a member of ‘std’

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Debug (gcc 8)

‘mutex’ is not a member of ‘std’

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Debug (gcc 8)

‘schema_mtx’ was not declared in this scope

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Debug (gcc 8)

‘lock’ was not declared in this scope

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (clang 15)

no member named 'lock_guard' in namespace 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (clang 15)

no member named 'mutex' in namespace 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (clang 15)

no member named 'lock_guard' in namespace 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (clang 15)

no member named 'mutex' in namespace 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 8.3)

'lock_guard' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 8.3)

'mutex' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 8.3)

'schema_mtx' was not declared in this scope

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 8.3)

'lock' was not declared in this scope

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 12.1)

'lock_guard' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 12.1)

'mutex' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 12.1)

'schema_mtx' was not declared in this scope; did you mean 'schemas'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 12.1)

'lock' was not declared in this scope; did you mean 'clock'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 8.3)

'lock_guard' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 8.3)

'mutex' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 8.3)

'schema_mtx' was not declared in this scope

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 8.3)

'lock' was not declared in this scope

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 11.1)

'lock_guard' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 11.1)

'mutex' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 11.1)

'schema_mtx' was not declared in this scope; did you mean 'schemas'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 11.1)

'lock' was not declared in this scope; did you mean 'clock'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 9.1)

'lock_guard' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 9.1)

'mutex' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 9.1)

'schema_mtx' was not declared in this scope; did you mean 'schemas'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 9.1)

'lock' was not declared in this scope; did you mean 'clock'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 10.1)

'lock_guard' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 10.1)

'mutex' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 10.1)

'schema_mtx' was not declared in this scope; did you mean 'schemas'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 10.1)

'lock' was not declared in this scope; did you mean 'clock'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 10.1)

'lock_guard' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 10.1)

'mutex' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 10.1)

'schema_mtx' was not declared in this scope; did you mean 'schemas'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 10.1)

'lock' was not declared in this scope; did you mean 'clock'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 11.1)

'lock_guard' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 11.1)

'mutex' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 11.1)

'schema_mtx' was not declared in this scope; did you mean 'schemas'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 11.1)

'lock' was not declared in this scope; did you mean 'clock'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 12.1)

'lock_guard' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 12.1)

'mutex' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 12.1)

'schema_mtx' was not declared in this scope; did you mean 'schemas'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 12.1)

'lock' was not declared in this scope; did you mean 'clock'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 9.1)

'lock_guard' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 9.1)

'mutex' is not a member of 'std'

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 9.1)

'schema_mtx' was not declared in this scope; did you mean 'schemas'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 9.1)

'lock' was not declared in this scope; did you mean 'clock'?

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Debug

'lock_guard': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Debug

'lock_guard': undeclared identifier [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Debug

'mutex': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Debug

'schema_mtx': undeclared identifier [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Debug

'lock': identifier not found [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Debug

'lock_guard': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Debug

'lock_guard': undeclared identifier [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Debug

'mutex': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Debug

'schema_mtx': undeclared identifier [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Debug

'lock': identifier not found [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Release

'lock_guard': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Release

'lock_guard': undeclared identifier [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Release

'mutex': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Release

'schema_mtx': undeclared identifier [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Release

'lock': identifier not found [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Release

'lock_guard': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Release

'lock_guard': undeclared identifier [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Release

'mutex': is not a member of 'std' [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Release

'schema_mtx': undeclared identifier [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]

Check failure on line 10 in src/cpprealm/schema.cpp

View workflow job for this annotation

GitHub Actions / Windows Sync Release

'lock': identifier not found [D:\a\realm-cpp\realm-cpp\.build\cmake-preset-windows-x64\src\cpprealm.vcxproj]
if (schema) {
auto it = std::find(std::begin(schemas), std::end(schemas), *schema);
if (it == std::end(schemas))
schemas.push_back(*schema);
}
return schemas;
}

} // namespace schemagen
} // namespace realm

0 comments on commit 3407fe5

Please sign in to comment.