Skip to content

Commit

Permalink
run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jan 29, 2018
1 parent 0097ac3 commit 7c59536
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/strict_variant/alloc_variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#pragma once

#include <strict_variant/alloc_wrapper.hpp>
#include <strict_variant/variant.hpp>
#include <strict_variant/mpl/std_traits.hpp>
#include <strict_variant/variant.hpp>
#include <type_traits>

namespace strict_variant {
Expand Down
2 changes: 1 addition & 1 deletion include/strict_variant/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class variant {

template <typename T, unsigned u>
struct initializer_base<T, mpl::ulist<u>> : initializer_leaf<T, u> {
using initializer_leaf<T, u>::operator();
using initializer_leaf<T, u>::operator();
};

template <typename T, unsigned u, unsigned... us>
Expand Down
7 changes: 1 addition & 6 deletions include/strict_variant/variant_detail.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#pragma once

#include <strict_variant/mpl/find_with.hpp>
#include <strict_variant/wrapper.hpp>
#include <strict_variant/safely_constructible.hpp>
#include <strict_variant/variant_fwd.hpp>
#include <strict_variant/wrapper.hpp>

#include <type_traits>

Expand Down Expand Up @@ -106,7 +106,6 @@ struct is_nothrow_default_constructible_impl<T, true> : std::false_type {};
template <typename T>
struct is_nothrow_default_constructible : is_nothrow_default_constructible_impl<T> {};


template <typename T, bool b = is_wrapper<T>::value>
struct is_nothrow_moveable_impl : std::is_nothrow_move_constructible<T> {};

Expand All @@ -116,7 +115,6 @@ struct is_nothrow_moveable_impl<T, true> : std::false_type {};
template <typename T>
struct is_nothrow_moveable : is_nothrow_moveable_impl<T> {};


template <typename T, bool b = is_wrapper<T>::value>
struct is_nothrow_copyable_impl : std::is_nothrow_constructible<T, const T &> {};

Expand All @@ -126,7 +124,6 @@ struct is_nothrow_copyable_impl<T, true> : std::false_type {};
template <typename T>
struct is_nothrow_copyable : is_nothrow_copyable_impl<T> {};


template <typename T, bool b = is_wrapper<T>::value>
struct is_nothrow_move_assignable_impl : std::is_nothrow_move_assignable<T> {};

Expand All @@ -136,7 +133,6 @@ struct is_nothrow_move_assignable_impl<T, true> : std::false_type {};
template <typename T>
struct is_nothrow_move_assignable : is_nothrow_move_assignable_impl<T> {};


template <typename T, bool b = is_wrapper<T>::value>
struct is_nothrow_copy_assignable_impl : std::is_nothrow_copy_assignable<T> {};

Expand All @@ -146,7 +142,6 @@ struct is_nothrow_copy_assignable_impl<T, true> : std::false_type {};
template <typename T>
struct is_nothrow_copy_assignable : is_nothrow_copy_assignable_impl<T> {};


template <typename First, typename... Types>
struct variant_noexcept_helper {
/***
Expand Down
1 change: 0 additions & 1 deletion include/strict_variant/wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,3 @@ template <typename T>
using unwrap_type_t = typename unwrap_type<T>::type;

} // end namespace strict_variant

0 comments on commit 7c59536

Please sign in to comment.