diff options
author | David Robillard <d@drobilla.net> | 2025-02-10 19:32:58 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-02-10 19:32:58 -0500 |
commit | ecd5449f7bcdb5097ed943088084bf71ab45bec6 (patch) | |
tree | 37592f604a18ca5c56d1cc8b9de2d8c0d0befb3f /test/test_hilbert.cpp | |
parent | b2d6d37af766acb80bfc97f68fc49e9500107235 (diff) | |
download | chilbert-ecd5449f7bcdb5097ed943088084bf71ab45bec6.tar.gz chilbert-ecd5449f7bcdb5097ed943088084bf71ab45bec6.tar.bz2 chilbert-ecd5449f7bcdb5097ed943088084bf71ab45bec6.zip |
Put local utility functions in anonymous namespaces
Diffstat (limited to 'test/test_hilbert.cpp')
-rw-r--r-- | test/test_hilbert.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_hilbert.cpp b/test/test_hilbert.cpp index 53177ec..6a1862d 100644 --- a/test/test_hilbert.cpp +++ b/test/test_hilbert.cpp @@ -33,6 +33,8 @@ _Pragma("clang diagnostic pop") #include <cstddef> #include <cstdint> +namespace { + /// Return a `D`-dimensional point within `ms` per-dimension precision template<size_t D> std::array<uint64_t, D> @@ -159,6 +161,8 @@ test_compact(Context& ctx) assert(squared_distance(pa, pb) == 1); } +} // namespace + int main() { |