basedOpinionated utility library |
git clone git://git.dimitrijedobrota.com/based.git |
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING |
commit | f9c399b8c96e67feae74e1358418999a2937f8d0 |
parent | 05763d080235789aa97f9247f2a30c542eaeb2de |
author | Dimitrije Dobrota < mail@dimitrijedobrota.com > |
date | Mon, 5 May 2025 08:45:42 +0200 |
Switch to header only for now, no more linking
M | CMakeLists.txt | | | + - |
M | example/algorithm.cpp | | | +++ |
M | example/instrumentation.cpp | | | +++ |
M | example/list.cpp | | | +++ |
A | source/empty.cpp | | | |
D | source/instrumentation.cpp | | | -------- |
6 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/ CMakeLists.txt b/ CMakeLists.txt
@@ -17,7 +17,7 @@
include(cmake/variables.cmake)
add_library(
based_based
source/instrumentation.cpp
source/empty.cpp
)
add_library(based::based ALIAS based_based)
diff --git a/ example/algorithm.cpp b/ example/algorithm.cpp
@@ -2,6 +2,9 @@
#include "based/instrumentation.hpp"
based::instrumented_base::op::type::array<double>
based::instrumented_base::counts;
int main()
{
static constexpr std::size_t size = 16;
diff --git a/ example/instrumentation.cpp b/ example/instrumentation.cpp
@@ -3,6 +3,9 @@
#include "based/instrumentation.hpp"
based::instrumented_base::op::type::array<double>
based::instrumented_base::counts;
class reg : public based::registry<reg>
{
public:
diff --git a/ example/list.cpp b/ example/list.cpp
@@ -4,6 +4,9 @@
#include "based/instrumentation.hpp"
based::instrumented_base::op::type::array<double>
based::instrumented_base::counts;
int main()
{
using instrumented = based::instrumented<double>;
diff --git a/ source/empty.cpp b/ source/empty.cpp
diff --git a/ source/instrumentation.cpp b/ source/instrumentation.cpp
@@ -1,8 +0,0 @@
#include "based/instrumentation.hpp"
namespace based
{
instrumented_base::op::type::array<double> instrumented_base::counts = {};
} // namespace based