diff --git a/build/vc100/turtle.vcxproj b/build/vc100/turtle.vcxproj index 5147023..ca41443 100644 --- a/build/vc100/turtle.vcxproj +++ b/build/vc100/turtle.vcxproj @@ -48,6 +48,7 @@ + diff --git a/build/vc100/turtle.vcxproj.filters b/build/vc100/turtle.vcxproj.filters index 05804aa..027d606 100644 --- a/build/vc100/turtle.vcxproj.filters +++ b/build/vc100/turtle.vcxproj.filters @@ -124,5 +124,8 @@ Source Files\detail + + Source Files + \ No newline at end of file diff --git a/turtle/error.hpp b/turtle/error.hpp index e7e6fa6..11a6aa6 100644 --- a/turtle/error.hpp +++ b/turtle/error.hpp @@ -10,18 +10,15 @@ #define MOCK_ERROR_HPP_INCLUDED #include "config.hpp" +#include "exception.hpp" #ifdef MOCK_USE_BOOST_TEST #include #include #include -#include #include namespace mock { - struct exception : virtual boost::execution_aborted - {}; - template< typename Result > struct error { diff --git a/turtle/exception.hpp b/turtle/exception.hpp new file mode 100644 index 0000000..16e5aaa --- /dev/null +++ b/turtle/exception.hpp @@ -0,0 +1,24 @@ +// http://turtle.sourceforge.net +// +// Copyright Mathieu Champlon 2012 +// +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + +#ifndef MOCK_EXCEPTION_HPP_INCLUDED +#define MOCK_EXCEPTION_HPP_INCLUDED + +#include "config.hpp" +#ifdef MOCK_USE_BOOST_TEST +#include + +namespace mock +{ + struct exception : virtual boost::execution_aborted + {}; +} // mock + +#endif // MOCK_USE_BOOST_TEST + +#endif // MOCK_EXCEPTION_HPP_INCLUDED