Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: third_party/boost/boost/fusion/support/detail/access.hpp

Issue 113163: Add gmock into our dependencies. (Closed)
Patch Set: Making gmock work with windows. Requires adding boost. Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/boost/boost/fusion/support/detail/access.hpp
diff --git a/third_party/boost/boost/fusion/support/detail/access.hpp b/third_party/boost/boost/fusion/support/detail/access.hpp
new file mode 100644
index 0000000000000000000000000000000000000000..0508e50f138b088f98f791cee5785e0f86db52a1
--- /dev/null
+++ b/third_party/boost/boost/fusion/support/detail/access.hpp
@@ -0,0 +1,55 @@
+/*=============================================================================
+ Copyright (c) 2001-2006 Joel de Guzman
+
+ 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)
+==============================================================================*/
+#if !defined(FUSION_ACCESS_04182005_0737)
+#define FUSION_ACCESS_04182005_0737
+
+#include <boost/mpl/eval_if.hpp>
+#include <boost/mpl/identity.hpp>
+#include <boost/type_traits/add_const.hpp>
+#include <boost/type_traits/add_reference.hpp>
+#include <boost/type_traits/is_reference.hpp>
+#include <boost/type_traits/remove_cv.hpp>
+
+namespace boost { namespace fusion { namespace detail
+{
+ template <typename T>
+ struct ref_result
+ {
+ typedef typename add_reference<typename T::type>::type type;
+ };
+
+ template <typename T>
+ struct cref_result
+ {
+ typedef typename
+ add_reference<
+ typename add_const<typename T::type>::type
+ >::type
+ type;
+ };
+
+ template <typename T>
+ struct non_ref_parameter
+ {
+ typedef typename boost::remove_cv<T>::type const& type;
+ };
+
+ template <typename T>
+ struct call_param
+ {
+ typedef typename
+ mpl::eval_if<
+ is_reference<T>
+ , mpl::identity<T>
+ , non_ref_parameter<T>
+ >::type
+ type;
+ };
+}}}
+
+#endif
+

Powered by Google App Engine
This is Rietveld 408576698