| 13211 | |
| 13212 | template <typename... T> |
| 13213 | TOML_RETURNS_BY_THROWING |
| 13214 | TOML_NEVER_INLINE |
| 13215 | void set_error_at(source_position pos, const T&... reason) const |
| 13216 | { |
| 13217 | static_assert(sizeof...(T) > 0); |
| 13218 | return_if_error(); |
| 13219 | |
| 13220 | error_builder builder{ current_scope }; |
| 13221 | (builder.append(reason), ...); |
| 13222 | |
| 13223 | parse_error_break(); |
| 13224 | |
| 13225 | #if TOML_EXCEPTIONS |
| 13226 | builder.finish(pos, reader.source_path()); |
| 13227 | #else |
| 13228 | err.emplace(builder.finish(pos, reader.source_path())); |
| 13229 | #endif |
| 13230 | } |
| 13231 | |
| 13232 | template <typename... T> |
| 13233 | TOML_RETURNS_BY_THROWING |