You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS2013 incorrectly reports "warning C4573: the usage of 'symbol' requires the compiler to capture 'this' but the current default capture mode does not allow it"; the issue and workaround is the same as for GCC 4.7 in commit:5244af7c.
// GCC Bug 56222 - Pointer to member in lambda should not require this to be captured
@@ -54,6 +56,21 @@
54
56
#defineAND_CAPTURE_MEMBER_FUNCTION_POINTERS , this
55
57
#endif
56
58
59
+
#elif defined(_MSC_VER)
60
+
61
+
#if _MSC_VER >= 1900
62
+
#defineAND_CAPTURE_MEMBER_FUNCTION_POINTERS
63
+
#else
64
+
// This bug also afflicts VS2013 which incorrectly reports "warning C4573: the usage of 'symbol' requires the compiler to capture 'this' but the current default capture mode does not allow it"
65
+
#defineAND_CAPTURE_MEMBER_FUNCTION_POINTERS , this
0 commit comments