-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9c7e0f
commit 1815dc5
Showing
18 changed files
with
66 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
diff --git a/utils/stat.cpp b/utils/stat.cpp | ||
index 30536c4..d99056b 100644 | ||
--- a/utils/stat.cpp | ||
+++ b/utils/stat.cpp | ||
@@ -7,1 +7,1 @@ | ||
-#include <math.h> | ||
+#include <cmath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/3rdparty/sol/sol.hpp b/3rdparty/sol/sol.hpp | ||
index 0bb68ebe..20855338 100644 | ||
--- a/3rdparty/sol/sol.hpp | ||
+++ b/3rdparty/sol/sol.hpp | ||
@@ -6747,12 +6747,9 @@ namespace sol { | ||
/// one. | ||
/// | ||
/// \group emplace | ||
- template <class... Args> | ||
- T& emplace(Args&&... args) noexcept { | ||
- static_assert(std::is_constructible<T, Args&&...>::value, "T must be constructible with Args"); | ||
- | ||
- *this = nullopt; | ||
- this->construct(std::forward<Args>(args)...); | ||
+ T& emplace(T& arg) noexcept { | ||
+ m_value = &arg; | ||
+ return **this; | ||
} | ||
|
||
/// Swaps this optional with the other. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/3rdparty/sol/sol.hpp b/3rdparty/sol/sol.hpp | ||
index 0bb68ebe..20855338 100644 | ||
--- a/3rdparty/sol/sol.hpp | ||
+++ b/3rdparty/sol/sol.hpp | ||
@@ -6747,12 +6747,9 @@ namespace sol { | ||
/// one. | ||
/// | ||
/// \group emplace | ||
- template <class... Args> | ||
- T& emplace(Args&&... args) noexcept { | ||
- static_assert(std::is_constructible<T, Args&&...>::value, "T must be constructible with Args"); | ||
- | ||
- *this = nullopt; | ||
- this->construct(std::forward<Args>(args)...); | ||
+ T& emplace(T& arg) noexcept { | ||
+ m_value = &arg; | ||
+ return **this; | ||
} | ||
|
||
/// Swaps this optional with the other. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters