mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 18:56:19 +08:00
This commit is contained in:
@@ -28,9 +28,10 @@ struct Parser<R, W, std::reference_wrapper<T>> {
|
||||
return Error("Unsupported.");
|
||||
}
|
||||
|
||||
static OutputVarType write(const W& _w,
|
||||
const std::reference_wrapper<T> _ref) noexcept {
|
||||
return Parser<R, W, std::decay_t<T>>::write(_w, _ref.get());
|
||||
template <class P>
|
||||
static void write(const W& _w, const std::reference_wrapper<T> _ref,
|
||||
const P& _p) noexcept {
|
||||
Parser<R, W, std::decay_t<T>>::write(_w, _ref.get(), _p);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user