marcoo
marcoo

Reputation: 869

‘mutex’ in namespace ‘boost’ does not name a type

I get this error when I try to compile the following code:

#include <boost/signals2/mutex.hpp>

class Log
{
    private:
        boost::mutex m_log;
...
}

The error I get when I try to compile is:

error: ‘mutex’ in namespace ‘boost’ does not name a type

Upvotes: 2

Views: 4682

Answers (1)

user1252446
user1252446

Reputation:

it is in the sub namespace

boost::signals2::mutex 

Upvotes: 9

Related Questions