Skip to content

Commit

Permalink
Fix .editorconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Parpart <[email protected]>
  • Loading branch information
christianparpart committed Dec 11, 2023
1 parent 6b53934 commit 81cb86e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@ insert_final_newline = true
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true

[LICENSE.txt]
end_of_line = unset
indent_size = unset
insert_final_newline = unset

[.clang-format]
indent_size = 2

[*.yml]
indent_size = 2
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ struct Wrap


auto x_coord = Wrap([](rho_type rho){ return unbox(rho); },
[](theta_type theta){ return sin(unbox(theta)); },
[](phi_type phi){ return cos(unbox(phi)); }
[](theta_type theta){ return sin(unbox(theta)); },
[](phi_type phi){ return cos(unbox(phi)); }
);

int main()
Expand Down
19 changes: 7 additions & 12 deletions test-boxed-cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,10 @@ TEST_CASE("boxed_cast")
static_assert(std::is_same_v<decltype(t), To const>);
}

namespace tags
{
struct N
{
};
struct Z
{
};
} // namespace tags
// clang-format off
namespace tags { struct N {}; struct Z {}; }
// clang-format on

using N = boxed::boxed<unsigned int, tags::N>;
using Z = boxed::boxed<signed int, tags::Z>;

Expand Down Expand Up @@ -129,13 +124,13 @@ TEST_CASE("all options for unbox")

// clang-format off
template<typename ...Ts>
struct not_same{};
struct not_same{};

template<typename T>
struct not_same<T,T> : virtual std::false_type {};
struct not_same<T,T> : virtual std::false_type {};

template<typename T,typename S>
struct not_same<T,S> : virtual std::true_type {} ;
struct not_same<T,S> : virtual std::true_type {} ;

template <typename ...T>
struct all_different : std::false_type {};
Expand Down

0 comments on commit 81cb86e

Please sign in to comment.