, -, .
Thus, when using staticor a global variable for its implementation, problems with multithreaded functions will arise. Otherwise, this is not a bad way to circumvent statelessness of distributors.
(Of course, you need to pass the second argument to the template, for example vector< int, UseScopedPool >.)
source
share