From 92559b8ec80d7c5f9fe014145672129be03831f9 Mon Sep 17 00:00:00 2001 From: marcel Date: Wed, 28 Apr 2021 16:41:07 +0200 Subject: [PATCH] push push tutorial --- docs/Tutorial.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/Tutorial.md b/docs/Tutorial.md index a7b0e21..7494b1a 100644 --- a/docs/Tutorial.md +++ b/docs/Tutorial.md @@ -178,11 +178,12 @@ struct convert { return node; } - static bool decode(const Node& node, Vec3& rhs) { + static Vec3 decode(const Node& node) { if(!node.IsSequence() || node.size() != 3) { - return false; + return YAML::conversion::DecodeException(""); } + Vec3 rhs; rhs.x = node[0].as(); rhs.y = node[1].as(); rhs.z = node[2].as();