Skip to content

Commit d6ea761

Browse files
committed
Few more STATIC_CHECK->static_assert replaces
Is this correct?
1 parent 392ee43 commit d6ea761

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/xrGame/ini_id_loader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CIni_IdToIndex
3434
template <u32 NUM>
3535
static void LoadItemData(u32, LPCSTR)
3636
{
37-
STATIC_CHECK(false, Specialization_for_LoadItemData_in_CIni_IdToIndex_not_found);
37+
static_assert(std::is_same_v<decltype(NUM), bool>, "Specialization for LoadItemData in CIni_IdToIndex not found."); // Xottab_DUTY: Is this correct?
3838
NODEFAULT;
3939
}
4040

src/xrGame/ini_table_loader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CIni_Table
4747
template <typename T_CONVERT_ITEM>
4848
T_ITEM convert(LPCSTR)
4949
{
50-
STATIC_CHECK(false, Specialization_for_convert_in_CIni_Table_not_found);
50+
static_assert(!std::is_same_v<T_CONVERT_ITEM, T_CONVERT_ITEM>, "Specialization for convert in CIni_Table not found."); // Xottab_DUTY: Is this correct?
5151
NODEFAULT;
5252
}
5353

0 commit comments

Comments
 (0)