Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gframe/irrUString.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ class ustring16 {
//! Returns the length of a ustring16 in full characters.
//! \return Length of a ustring16 in full characters.
u32 size() const {
if (sizeof(wchar_t) == 4) {
if constexpr (sizeof(wchar_t) == 4) {
return size_raw_;
} else {
if(size_ != 0xffffffff)
Expand Down Expand Up @@ -524,7 +524,7 @@ class ustring16 {
//! \return A reference to our current string.
void validate() {
// Validate all unicode characters.
if (sizeof(wchar_t) == 4) {
if constexpr (sizeof(wchar_t) == 4) {
size_ = size_raw_;
return;
}
Expand Down
2 changes: 1 addition & 1 deletion gframe/network.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <event2/thread.h>
#include <type_traits>

#define check_trivially_copyable(T) static_assert(std::is_trivially_copyable<T>::value == true && std::is_standard_layout<T>::value == true, "not trivially copyable")
#define check_trivially_copyable(T) static_assert(std::is_trivially_copyable_v<T> == true && std::is_standard_layout_v<T> == true, "not trivially copyable")

namespace ygo {
constexpr int SIZE_NETWORK_BUFFER = 0x20000;
Expand Down
2 changes: 1 addition & 1 deletion gframe/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include "spmemvfs/."

project "YGOPro"
kind "WindowedApp"
cppdialect "C++14"
cppdialect "C++17"
rtti "Off"
openmp "On"

Expand Down