libstdc++

can helgrind (valgrind) be used with c++11 futures

☆樱花仙子☆ 提交于 2020-06-26 04:35:45
问题 I'm getting what I think are false positives when using helgrind with C++11 futures and packaged tasks. The following is with gcc-6.3.0 and valgrind-3.12 on a CentOS6 system. I've tried to follow the advice in the documentation to provide annotations. Have I done something wrong? What should I do to avoid the false positives, or is there really a race? drdws0134$ cat hthread.cpp #include <valgrind/helgrind.h> #define _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(addr) ANNOTATE_HAPPENS_BEFORE(addr)

std::string SSO tuning

杀马特。学长 韩版系。学妹 提交于 2020-03-02 05:56:46
问题 Is it possible to tune std::string Small/Short String Optimization somehow? For example, if I have to work with a lot of quite short strings but longer than 15 chars (like lastname + ", " + firstname + ", " + middlename which length is usually in range of [20; 40] ). Upd: According to this looks like the answer is no. But when I opened basic_string.h file I've found this: template<typename _CharT, typename _Traits, typename _Alloc> class basic_string { ... enum { _S_local_capacity = 15 /

The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll

眉间皱痕 提交于 2020-02-22 05:59:05
问题 I got that error when trying to run my opencv application. I´m using Windows7,CodeBlocks 12.11, opencv2.4.4 and MinGW compiler (the one that comes in CodeBlocks). It compiles and creates the executable but when i try to run it crashes with the procedure entry point error. I have added C:\programs\CodeBlocks\Mingw\bin to "PATH" variable and i know there is libstdc++-6.dll. I don´t know what´s hapenning. This is the simple code: include <iostream> include <opencv2/highgui/highgui.hpp> using

The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll

橙三吉。 提交于 2020-02-22 05:59:02
问题 I got that error when trying to run my opencv application. I´m using Windows7,CodeBlocks 12.11, opencv2.4.4 and MinGW compiler (the one that comes in CodeBlocks). It compiles and creates the executable but when i try to run it crashes with the procedure entry point error. I have added C:\programs\CodeBlocks\Mingw\bin to "PATH" variable and i know there is libstdc++-6.dll. I don´t know what´s hapenning. This is the simple code: include <iostream> include <opencv2/highgui/highgui.hpp> using