File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
include/spark_dsg/serialization Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11---
22# based on https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
33name : ' Spark-DSG Build and Test'
4- on : [pull_request]
4+ on : [pull_request, {push: {branches: [fix/cross_platform]}} ]
55jobs :
66 lint :
77 runs-on : ubuntu-latest
Original file line number Diff line number Diff 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
137137template <typename T>
Original file line number Diff line number Diff line change 3636
3737namespace spark_dsg ::serialization {
3838
39+ std::unique_ptr<Visitor> Visitor::s_instance_ = nullptr ;
40+
3941Visitor& Visitor::instance () {
4042 if (!s_instance_) {
4143 s_instance_.reset (new Visitor ());
You can’t perform that action at this time.
0 commit comments