mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 12:52:25 +01:00
Core/Misc: Mark some functions noexcept to reduce size of compiled code
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
BOOST_PP_SEQ_FOR_EACH(DEFINE_FIELD_ACCESSOR_CACHE_FIELD, ~, fields_list) \
|
||||
struct_name(result_type const& result) : Fields(result.Fetch()), indexes(indexes_impl(result)) { }\
|
||||
Field* Fields; \
|
||||
static Indexes const& indexes_impl(result_type const& result) { static Indexes const instance(result); return instance; }\
|
||||
static Indexes const& indexes_impl(result_type const& result) noexcept { static Indexes const instance(result); return instance; }\
|
||||
Indexes const& indexes;\
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user