Skip to content

Commit c0a4cfe

Browse files
committed
try non-inline variable
1 parent 4d2869c commit c0a4cfe

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# based on https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
33
name: 'Spark-DSG Build and Test'
4-
on: [pull_request]
4+
on: [pull_request, {push: {branches: [fix/cross_platform]}}]
55
jobs:
66
lint:
77
runs-on: ubuntu-latest

include/spark_dsg/serialization/attribute_serialization.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class Visitor {
131131
} type_;
132132

133133
std::unique_ptr<SerializationImpl> impl_;
134-
inline thread_local static std::unique_ptr<Visitor> s_instance_ = nullptr;
134+
thread_local static std::unique_ptr<Visitor> s_instance_;
135135
};
136136

137137
template <typename T>

src/serialization/attribute_serialization.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636

3737
namespace spark_dsg::serialization {
3838

39+
std::unique_ptr<Visitor> Visitor::s_instance_ = nullptr;
40+
3941
Visitor& Visitor::instance() {
4042
if (!s_instance_) {
4143
s_instance_.reset(new Visitor());

0 commit comments

Comments
 (0)