]> Savannah Git Hosting - gnulib.git/commit
list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
authorBruno Haible <bruno@clisp.org>
Sun, 31 May 2020 10:01:27 +0000 (12:01 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 31 May 2020 10:01:27 +0000 (12:01 +0200)
commitd2ae3a4ac629609fc29c16c53757767fd2963b88
treef52a59627d4a50aa9302d4eabbb2913042536a8e
parent0964a8cc11b4e13780e427c7dfc5d6a0fe072c9e
list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.

Reported by Akim Demaille in
<https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.

* lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
* lib/gl_set.hh (gl_Set::iterator::next): Likewise.
* lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
* lib/gl_map.hh (gl_Map::iterator::next): Likewise.
* lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
ChangeLog
lib/gl_list.hh
lib/gl_map.hh
lib/gl_omap.hh
lib/gl_oset.hh
lib/gl_set.hh