7 #include <utility/stringutils.h>
36 bool check(
bool successCondition, T&& errorMessage)
38 if (!successCondition)
39 mErrorList.emplace_back(std::forward<T>(errorMessage));
40 return successCondition;
55 template <
typename... Args>
56 bool check(
bool successCondition,
const char* format, Args&&... args)
58 if (!successCondition)
59 mErrorList.emplace_back(
stringFormat(format, std::forward<Args>(args)...));
60 return successCondition;
75 void fail(T&& errorMessage)
77 mErrorList.emplace_back(std::forward<T>(errorMessage));
91 template <
typename... Args>
92 void fail(
const char* format, Args&&... args)
109 std::vector<std::string> mErrorList;