mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-07 03:06:18 +08:00
Fixed return type
This commit is contained in:
@@ -24,7 +24,7 @@ auto read(const InputVarType& _var) {
|
||||
|
||||
/// Parses an object from XML using reflection.
|
||||
template <class T>
|
||||
auto read(const std::string& _xml_str) {
|
||||
Result<T> read(const std::string& _xml_str) {
|
||||
pugi::xml_document doc;
|
||||
const auto result = doc.load_string(_xml_str.c_str());
|
||||
if (!result) {
|
||||
|
||||
Reference in New Issue
Block a user