Fix issues exposed by building with MSVC and /permissive-. (dotnet/coreclr#11269)
authorXiang Fan <xiangfan@microsoft.com>
Thu, 27 Apr 2017 23:48:13 +0000 (16:48 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 27 Apr 2017 23:48:13 +0000 (16:48 -0700)
Using full-qualified name to declare members inside class is ill-formed and incorrectly allowed by MSVC.
MSVC now gives error when /permissive- is used.

Commit migrated from https://github.com/dotnet/coreclr/commit/e60e06f9b65d3fafdd6fd78900315d765ef3c91e

src/coreclr/src/vm/sampleprofiler.h

index 2c7466f..a5c5fc3 100644 (file)
@@ -24,7 +24,7 @@ class SampleProfiler
         static void WalkManagedThreads();
 
         // Profiling thread proc.  Invoked on a new thread when profiling is enabled.
-        static DWORD WINAPI SampleProfiler::ThreadProc(void *args);
+        static DWORD WINAPI ThreadProc(void *args);
 
         // True when profiling is enabled.
         static Volatile<BOOL> s_profilingEnabled;