
Please try latest trunk code
I just tried the latest trunk code and I'm sorry to report that the GCC
specific attribute does not solve all problems. The crashes or
indefinite waits have been resolved though.
I also noticed that the described symptoms are not merely a result of
compiler optimizations. I was experimenting with different GCC
optimization parameters in an attempt to identify the guilty ones when I
noticed that even when optimizations are completely turned off, some
weird behavior "can" occur. When I run the snippet provided below,
compiled with -O0, several times, the program behaves as expected about
half of the times and in the other runs, the map find function will fail
to find any entries, resulting in a matrix consisting of ones instead of
twos. In higher optimization levels, the find function fails consistently.
Does the snippet always work for MSVC?
kind regards,
Steven
#include <iostream>
#include <stdexcept>
#include