]> Savannah Git Hosting - gnulib.git/commitdiff
oset-c++: Fix compilation error with MSVC 14.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Sep 2022 22:14:48 +0000 (00:14 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Sep 2022 02:00:14 +0000 (04:00 +0200)
* lib/gl_oset.hh: With MSVC, avoid 'friend'.

ChangeLog
lib/gl_oset.hh

index ee53375b54d6f998edebeffa0f265458cba669ed..3142b87761b2f3115fe3a1b02127b847fbcf8b68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-09-04  Bruno Haible  <bruno@clisp.org>
+
+       oset-c++: Fix compilation error with MSVC 14.
+       * lib/gl_oset.hh: With MSVC, avoid 'friend'.
+
 2022-09-04  Bruno Haible  <bruno@clisp.org>
 
        glob tests: Fix link error on mingw.
index 7443d645a1ec0d88c39d5967a824962c10df97fa..2f8d6bda7e27d93f43b07cefd0f4c7077bde289b 100644 (file)
@@ -153,7 +153,7 @@ public:
     ~iterator ()
       { gl_oset_iterator_free (&_state); }
 
-  #if defined __xlC__ || defined __HP_aCC || defined __SUNPRO_CC || defined __EDG__
+  #if defined __xlC__ || defined __HP_aCC || defined __SUNPRO_CC || defined __EDG__ || (defined _MSC_VER && !defined __clang__)
   public:
   #else
   private: