aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespaces/weird/another.cpp
diff options
context:
space:
mode:
Diffstat (limited to '_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespaces/weird/another.cpp')
-rw-r--r--_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespaces/weird/another.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespaces/weird/another.cpp b/_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespaces/weird/another.cpp
index 8a125ec..0e0bff9 100644
--- a/_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespaces/weird/another.cpp
+++ b/_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespaces/weird/another.cpp
@@ -2,14 +2,14 @@
#include <iostream>
-struct Test
-{
- Test() { std::cout << "another.cpp: Test::Test()\n"; }
+struct Test {
+ Test() {
+ std::cout << "another.cpp: Test::Test()\n";
+ }
float y = 1.;
};
-void another()
-{
+void another() {
Test test;
}