diff --git a/include/turtle/detail/sequence_impl.hpp b/include/turtle/detail/sequence_impl.hpp index ac40080..c7d3ce6 100644 --- a/include/turtle/detail/sequence_impl.hpp +++ b/include/turtle/detail/sequence_impl.hpp @@ -12,7 +12,7 @@ #include "../config.hpp" #include "mutex.hpp" #include -#include +#include #include #include @@ -23,8 +23,10 @@ namespace detail class sequence_impl : private boost::noncopyable { public: - sequence_impl() : mutex_( boost::make_shared< mutex >() ) {} - + sequence_impl() + : mutex_( boost::make_shared< mutex >() ) + {} + void add( void* e ) { lock _( mutex_ ); @@ -57,7 +59,6 @@ namespace detail typedef std::vector< void* > elements_type; elements_type elements_; - const boost::shared_ptr< mutex > mutex_; }; } diff --git a/include/turtle/sequence.hpp b/include/turtle/sequence.hpp index 051d219..28a2ee9 100644 --- a/include/turtle/sequence.hpp +++ b/include/turtle/sequence.hpp @@ -10,7 +10,6 @@ #define MOCK_SEQUENCE_HPP_INCLUDED #include "config.hpp" -#include #include "detail/sequence_impl.hpp" namespace mock