aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespace_and_inline/main.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-06-24 22:54:43 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-06-25 05:05:48 +0300
commit9b3ad53e855764e46a9febe395b88d3ca1aeaf45 (patch)
tree9930fcc81ef6fd38cb168732bdfd6bf87a4f0828 /_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespace_and_inline/main.cpp
parentadd _drafts/ (diff)
downloadjekyll-theme-9b3ad53e855764e46a9febe395b88d3ca1aeaf45.tar.gz
jekyll-theme-9b3ad53e855764e46a9febe395b88d3ca1aeaf45.zip
add post "static vs. inline vs. namespace {"
Also includes a bunch of includes to easily add grouped code snippets to a post. They were present before, but I wiped them away during the recent major history rewriting which I still regret about.
Diffstat (limited to '_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespace_and_inline/main.cpp')
-rw-r--r--_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespace_and_inline/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespace_and_inline/main.cpp b/_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespace_and_inline/main.cpp
new file mode 100644
index 0000000..7fbeb56
--- /dev/null
+++ b/_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespace_and_inline/main.cpp
@@ -0,0 +1,11 @@
+#include "proxy.hpp"
+#include "shared.hpp"
+
+#include <iostream>
+
+int main()
+{
+ std::cout << shared() << '\n';
+ std::cout << proxy() << '\n';
+ return 0;
+}