From 850990a6108fdbf812138e38d4bbf2f99383fbb8 Mon Sep 17 00:00:00 2001 From: "Dr. Patrick Urbanke" Date: Wed, 18 Dec 2024 00:15:17 +0100 Subject: [PATCH] Remove code that was commented out --- include/rfl/Result.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/rfl/Result.hpp b/include/rfl/Result.hpp index b762c2e9..a21e239c 100644 --- a/include/rfl/Result.hpp +++ b/include/rfl/Result.hpp @@ -316,22 +316,18 @@ class Result { } T& get_t() noexcept { - // return *internal::ptr_cast(t_or_err_.data()); return *std::launder(reinterpret_cast(t_or_err_.data())); } const T& get_t() const noexcept { - // return *internal::ptr_cast(t_or_err_.data()); return *std::launder(reinterpret_cast(t_or_err_.data())); } Error& get_err() noexcept { - // return *internal::ptr_cast(t_or_err_.data()); return *std::launder(reinterpret_cast(t_or_err_.data())); } const Error& get_err() const noexcept { - // return *internal::ptr_cast(t_or_err_.data()); return *std::launder(reinterpret_cast(t_or_err_.data())); }