aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/cpuid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/cpuid.cpp')
-rw-r--r--doc/examples/cpuid.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/examples/cpuid.cpp b/doc/examples/cpuid.cpp
index 8adc8be6c..62b565edf 100644
--- a/doc/examples/cpuid.cpp
+++ b/doc/examples/cpuid.cpp
@@ -9,6 +9,8 @@
using namespace Botan;
+namespace {
+
void print_if_feature(const std::string& feature_name, bool exists)
{
if(exists)
@@ -17,6 +19,8 @@ void print_if_feature(const std::string& feature_name, bool exists)
std::cout << '[' << feature_name << ']' << '\n';
}
+}
+
int main()
{
std::cout << "Cache line size = " << CPUID::cache_line_size() << "\n";