vendredi 2 juin 2017

Is there only one instance of c++11 singleton from static library

I use a class which has a singleton get method which returns a static local library. This is threadsafe in C++1. When I compile this class as a static library and use this library in two different shared libraries: Is there only one instance of the singleton when linking these two shared libraries with an application?

Aucun commentaire:

Enregistrer un commentaire