From 8a70c954095d8b4f1cb1faeef96d7dd39d6fc7f9 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sun, 15 Dec 2019 10:18:09 -0800 Subject: [PATCH] minor --- test/dummyserv.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/dummyserv.cpp b/test/dummyserv.cpp index b31e9ab..274cc12 100644 --- a/test/dummyserv.cpp +++ b/test/dummyserv.cpp @@ -25,10 +25,9 @@ using namespace pvxs::server; DEFINE_LOGGER(dummy,"dummyserv"); -const Value mytype = nt::NTScalar{TypeCode::Int32}.build().create(); - struct DummyHandler : public Handler { + static const Value mytype; static std::atomic count; Value current; @@ -63,6 +62,8 @@ struct DummyHandler : public Handler } }; + +const Value DummyHandler::mytype = nt::NTScalar{TypeCode::Int32}.build().create(); std::atomic DummyHandler::count{}; struct DummySource : public Source