Skip to content

Commit

Permalink
Corrected indents, removed trailing spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastique committed Apr 2, 2015
1 parent 2fe0e70 commit b0a2809
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions include/boost/detail/is_incrementable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# include <boost/mpl/bool.hpp>
# include <boost/detail/workaround.hpp>

namespace boost { namespace detail {
namespace boost { namespace detail {

// is_incrementable<T> metafunction
//
Expand All @@ -24,15 +24,15 @@ namespace is_incrementable_
// a type returned from operator++ when no increment is found in the
// type's own namespace
struct tag {};

// any soaks up implicit conversions and makes the following
// operator++ less-preferred than any other such operator that
// might be found via ADL.
struct any { template <class T> any(T const&); };

// This is a last-resort operator++ for when none other is found
# if BOOST_WORKAROUND(__GNUC__, == 4) && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 2

}

namespace is_incrementable_2
Expand All @@ -44,33 +44,33 @@ using namespace is_incrementable_2;

namespace is_incrementable_
{

# else

tag operator++(any const&);
tag operator++(any const&,int);
# endif

# endif

# if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3202))
# define BOOST_comma(a,b) (a)
# else
# else
// In case an operator++ is found that returns void, we'll use ++x,0
tag operator,(tag,int);
tag operator,(tag,int);
# define BOOST_comma(a,b) (a,b)
# endif
# endif

# if defined(BOOST_MSVC)
# pragma warning(push)
# pragma warning(disable:4913) // Warning about operator,
# endif
# endif

// two check overloads help us identify which operator++ was picked
char (& check_(tag) )[2];

template <class T>
char check_(T const&);


template <class T>
struct impl
Expand All @@ -96,23 +96,23 @@ namespace is_incrementable_

# if defined(BOOST_MSVC)
# pragma warning(pop)
# endif
# endif

}

# undef BOOST_comma

template<typename T>
struct is_incrementable
: public ::boost::integral_constant<bool,::boost::detail::is_incrementable_::impl<T>::value>
{
template<typename T>
struct is_incrementable :
public boost::integral_constant<bool, boost::detail::is_incrementable_::impl<T>::value>
{
BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_incrementable,(T))
};

template<typename T>
struct is_postfix_incrementable
: public ::boost::integral_constant<bool,::boost::detail::is_incrementable_::postfix_impl<T>::value>
{
template<typename T>
struct is_postfix_incrementable :
public boost::integral_constant<bool, boost::detail::is_incrementable_::postfix_impl<T>::value>
{
BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_postfix_incrementable,(T))
};

Expand Down

0 comments on commit b0a2809

Please sign in to comment.