Boost logo

Boost Users :

Subject: [Boost-users] [Boost.Filesystem] crashes in static destruction of global string object
From: Nguyen Huu Hai (huuhai.nguyen_at_[hidden])
Date: 2016-10-07 10:45:32


libs/filesytem/src/portability.cpp defines valid_posix as a
std::string object instead of a const char * pointer. May I know if
there are reasons for that?

I'm using Boost.Filesystem as a shared library and my processes crash
on exit with stack traces pointing to the static destruction of
valid_posix. Making it const char* fixes the crashes.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at