Skip to content

Commit

Permalink
Few more STATIC_CHECK->static_assert replaces
Browse files Browse the repository at this point in the history
Is this correct?
  • Loading branch information
Xottab-DUTY committed Aug 4, 2017
1 parent 392ee43 commit d6ea761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xrGame/ini_id_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CIni_IdToIndex
template <u32 NUM>
static void LoadItemData(u32, LPCSTR)
{
STATIC_CHECK(false, Specialization_for_LoadItemData_in_CIni_IdToIndex_not_found);
static_assert(std::is_same_v<decltype(NUM), bool>, "Specialization for LoadItemData in CIni_IdToIndex not found."); // Xottab_DUTY: Is this correct?
NODEFAULT;
}

Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/ini_table_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CIni_Table
template <typename T_CONVERT_ITEM>
T_ITEM convert(LPCSTR)
{
STATIC_CHECK(false, Specialization_for_convert_in_CIni_Table_not_found);
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?
NODEFAULT;
}

Expand Down

0 comments on commit d6ea761

Please sign in to comment.