vcpkg/ports/vanillapdf/disable-autosubscribe.diff

21 lines
713 B
Diff

diff --git a/src/vanillapdf/utils/util.h b/src/vanillapdf/utils/util.h
index 086dc66..57e23ef 100644
--- a/src/vanillapdf/utils/util.h
+++ b/src/vanillapdf/utils/util.h
@@ -49,6 +49,7 @@ private:
ScopeGuardFactory();
};
+#if 0
// The AutoSubscribe concept is something I was thinking about for a long time.
// Unfortunately I am still not able to create a working POC, however I want to keep the code.
// In case I will be thinking about such functionality in the future, this could be the starting point.
@@ -95,6 +96,7 @@ private:
T _observable;
U* _observer;
};
+#endif
#if (__cplusplus < 201402L) && !defined(COMPILER_MICROSOFT_VISUAL_STUDIO)
// Use custom implementation if not