Skip to content

Instantly share code, notes, and snippets.

View xforce's full-sized avatar

Alexander Guettler xforce

View GitHub Profile

Keybase proof

I hereby claim:

  • I am xforce on github.
  • I am guettler (https://keybase.io/guettler) on keybase.
  • I have a public key whose fingerprint is 51BD 3682 0524 54DF EFFE 1B7C 04B2 DC79 FBC9 BDCA

To claim this, I am signing this object:

@xforce
xforce / gist:2dc98e9b23bcf0e3da2971338f045d47
Created January 14, 2017 17:48
microprofile dll patch
diff --git a/microprofile.cpp b/microprofile.cpp
index 563ec8c..5da52f1 100644
--- a/microprofile.cpp
+++ b/microprofile.cpp
@@ -1,4 +1,11 @@
#define MICROPROFILE_IMPL
+
+#if _WIN32
+ #ifndef MICROPROFILE_API
+ #define MICROPROFILE_API __declspec(dllexport)
@xforce
xforce / reverse_tuple
Created August 8, 2014 05:17
Reverse tuple
template <typename... Ts>
struct tuple_reverse;
template <>
struct tuple_reverse<std::tuple<>>
{
using type = std::tuple<>;
};
template <typename T, typename... Ts>