mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-23 00:57:20 +02:00
fixed non-ascii chars
[SVN r47675]
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
/*=============================================================================
|
/*=============================================================================
|
||||||
Copyright (c) 2005-2006 João Abecasis
|
Copyright (c) 2005-2006 Joao Abecasis
|
||||||
Copyright (c) 2006-2007 Tobias Schwinger
|
Copyright (c) 2006-2007 Tobias Schwinger
|
||||||
|
|
||||||
Use modification and distribution are subject to the Boost Software
|
Use modification and distribution are subject to the Boost Software
|
||||||
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
http://www.boost.org/LICENSE_1_0.txt).
|
http://www.boost.org/LICENSE_1_0.txt).
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
@ -127,10 +127,10 @@ class members
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
int data;
|
int data;
|
||||||
|
|
||||||
members()
|
members()
|
||||||
: data(20)
|
: data(20)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
int nullary() { return data + 1; }
|
int nullary() { return data + 1; }
|
||||||
int nullary_c() const { return data + 2; }
|
int nullary_c() const { return data + 2; }
|
||||||
@ -340,17 +340,17 @@ void result_type_tests()
|
|||||||
using boost::is_same;
|
using boost::is_same;
|
||||||
|
|
||||||
BOOST_TEST(( is_same<
|
BOOST_TEST(( is_same<
|
||||||
fusion::result_of::invoke<int (*)(), fusion::vector0 >::type, int
|
fusion::result_of::invoke<int (*)(), fusion::vector0 >::type, int
|
||||||
>::value ));
|
>::value ));
|
||||||
// disabled until boost::result_of supports it
|
// disabled until boost::result_of supports it
|
||||||
// BOOST_TEST(( is_same<
|
// BOOST_TEST(( is_same<
|
||||||
// fusion::result_of::invoke<int (*)(...), fusion::vector1<int> >::type, int
|
// fusion::result_of::invoke<int (*)(...), fusion::vector1<int> >::type, int
|
||||||
// >::value ));
|
// >::value ));
|
||||||
BOOST_TEST(( is_same<
|
BOOST_TEST(( is_same<
|
||||||
fusion::result_of::invoke<int (members::*)(), fusion::vector1<members*> >::type, int
|
fusion::result_of::invoke<int (members::*)(), fusion::vector1<members*> >::type, int
|
||||||
>::value ));
|
>::value ));
|
||||||
// disabled until boost::result_of supports it
|
// disabled until boost::result_of supports it
|
||||||
// BOOST_TEST(( is_same<
|
// BOOST_TEST(( is_same<
|
||||||
// fusion::result_of::invoke<int (members::*)(...), fusion::vector2<members*,int> >::type, int
|
// fusion::result_of::invoke<int (members::*)(...), fusion::vector2<members*,int> >::type, int
|
||||||
// >::value ));
|
// >::value ));
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/*=============================================================================
|
/*=============================================================================
|
||||||
Copyright (c) 2005-2006 João Abecasis
|
Copyright (c) 2005-2006 Joao Abecasis
|
||||||
Copyright (c) 2006-2007 Tobias Schwinger
|
Copyright (c) 2006-2007 Tobias Schwinger
|
||||||
|
|
||||||
Use modification and distribution are subject to the Boost Software
|
Use modification and distribution are subject to the Boost Software
|
||||||
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
http://www.boost.org/LICENSE_1_0.txt).
|
http://www.boost.org/LICENSE_1_0.txt).
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
@ -41,7 +41,7 @@ struct object_nc : boost::noncopyable {};
|
|||||||
struct fobj
|
struct fobj
|
||||||
{
|
{
|
||||||
// Handle nullary separately to exercise result_of support
|
// Handle nullary separately to exercise result_of support
|
||||||
template <typename Sig>
|
template <typename Sig>
|
||||||
struct result;
|
struct result;
|
||||||
|
|
||||||
template <class Self, typename T0>
|
template <class Self, typename T0>
|
||||||
@ -97,7 +97,7 @@ struct fobj_nc
|
|||||||
{
|
{
|
||||||
typedef int type;
|
typedef int type;
|
||||||
};
|
};
|
||||||
|
|
||||||
int operator()(int i) { return 14 + i; }
|
int operator()(int i) { return 14 + i; }
|
||||||
int operator()(int i) const { return 15 + i; }
|
int operator()(int i) const { return 15 + i; }
|
||||||
};
|
};
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/*=============================================================================
|
/*=============================================================================
|
||||||
Copyright (c) 2005-2006 João Abecasis
|
Copyright (c) 2005-2006 Joao Abecasis
|
||||||
Copyright (c) 2006-2007 Tobias Schwinger
|
Copyright (c) 2006-2007 Tobias Schwinger
|
||||||
|
|
||||||
Use modification and distribution are subject to the Boost Software
|
Use modification and distribution are subject to the Boost Software
|
||||||
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
http://www.boost.org/LICENSE_1_0.txt).
|
http://www.boost.org/LICENSE_1_0.txt).
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
@ -48,10 +48,10 @@ class members
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
int data;
|
int data;
|
||||||
|
|
||||||
members()
|
members()
|
||||||
: data(20)
|
: data(20)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
int nullary() { return element1 = data + 1; }
|
int nullary() { return element1 = data + 1; }
|
||||||
int nullary_c() const { return element1 = data + 2; }
|
int nullary_c() const { return element1 = data + 2; }
|
||||||
|
Reference in New Issue
Block a user