Skip to content

Commit

Permalink
fix(sourcepp): missing include, remove pragma packs around math types
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed May 28, 2024
1 parent 94abadd commit 2043e2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 0 additions & 4 deletions include/sourcepp/math/Matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

namespace sourcepp {

#pragma pack(push, 1)

template<uint8_t M, uint8_t N, std::floating_point P = float>
class Matrix {
public:
Expand All @@ -22,6 +20,4 @@ class Matrix {
P data[M][N];
};

#pragma pack(pop)

} // namespace sourcepp
8 changes: 3 additions & 5 deletions include/sourcepp/math/Vector.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

namespace sourcepp {
#include <concepts>

#pragma pack(push, 1)
namespace sourcepp {

template<std::floating_point P>
struct Vec2 {
Expand All @@ -21,7 +21,7 @@ struct Vec3 {
using Vec3f = Vec3<float>;
using Vec3d = Vec3<double>;

template<std::floating_point P = float>
template<std::floating_point P>
struct Vec4 {
P x;
P y;
Expand All @@ -31,6 +31,4 @@ struct Vec4 {
using Vec4f = Vec4<float>;
using Vec4d = Vec4<double>;

#pragma pack(pop)

} // namespace sourcepp

0 comments on commit 2043e2f

Please sign in to comment.