Skip to content

Commit

Permalink
apply fix-format
Browse files Browse the repository at this point in the history
  • Loading branch information
luk036 committed Mar 24, 2024
1 parent fc3619b commit 60d85c6
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 34 deletions.
1 change: 0 additions & 1 deletion cmake/specific.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ CPMAddPackage(

set(SPECIFIC_LIBS LdsGen::LdsGen fmt::fmt Microsoft.GSL::GSL)


# cpmaddpackage( NAME GSL GITHUB_REPOSITORY "microsoft/GSL" GIT_TAG "v4.0.0" GIT_SHALLOW ON )

# include(FetchContent)
Expand Down
2 changes: 1 addition & 1 deletion include/recti/generic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// #include <algorithm> // import std::min, std::max
#include <cassert>
#include <cmath> // for abs
#include <cmath> // for abs

namespace recti {

Expand Down
3 changes: 2 additions & 1 deletion include/recti/interval.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#pragma once

// #include <algorithm> // import std::min, std::max
#include "generic.hpp"
#include <utility> // import std::move

#include "generic.hpp"

namespace recti {

#pragma pack(push, 1)
Expand Down
63 changes: 32 additions & 31 deletions include/recti/point.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,36 +388,36 @@ namespace recti {
};
#pragma pack(pop)

// #pragma pack(push, 1)
// /**
// * @brief 2D Point
// *
// * @tparam T1
// * @tparam T2
// */
// template <typename T1, typename T2 = T1> class dualpoint : public Point<T1, T2> {
// public:
// /**
// * @brief
// *
// * @return const T1&
// */
// constexpr auto ycoord() const -> const T1 & // override intentionally
// {
// return this->_xcoord;
// }

// /**
// * @brief
// *
// * @return const T2&
// */
// constexpr auto xcoord() const -> const T2 & // override intentionally
// {
// return this->_ycoord;
// }
// };
// #pragma pack(pop)
// #pragma pack(push, 1)
// /**
// * @brief 2D Point
// *
// * @tparam T1
// * @tparam T2
// */
// template <typename T1, typename T2 = T1> class dualpoint : public Point<T1, T2> {
// public:
// /**
// * @brief
// *
// * @return const T1&
// */
// constexpr auto ycoord() const -> const T1 & // override intentionally
// {
// return this->_xcoord;
// }

// /**
// * @brief
// *
// * @return const T2&
// */
// constexpr auto xcoord() const -> const T2 & // override intentionally
// {
// return this->_ycoord;
// }
// };
// #pragma pack(pop)

// /**
// * @brief adapter for containers of Point (deprecated)
Expand All @@ -429,7 +429,8 @@ namespace recti {
// using T1 = decltype(std::declval(iterator::value_type).xcoord());
// using T2 = decltype(std::declval(iterator::value_type).ycoord());

// constexpr explicit dual_iterator(iterator &&itr) : iterator{std::forward<iterator>(itr)} {}
// constexpr explicit dual_iterator(iterator &&itr) : iterator{std::forward<iterator>(itr)}
// {}

// CONSTEXPR14 auto operator*() const noexcept -> const dualpoint<T2, T1> & {
// return dualpoint<T2, T1>{};
Expand Down

0 comments on commit 60d85c6

Please sign in to comment.