From b5dc4555661c2d15347f2a1d0a97ecccc97fbb68 Mon Sep 17 00:00:00 2001 From: rexy712 Date: Tue, 21 Apr 2020 13:06:13 -0700 Subject: [PATCH] Fix issue in string_cat_expr which would cause copy construction to never work --- include/rexy/string_base.tpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rexy/string_base.tpp b/include/rexy/string_base.tpp index fce2717..cac97e6 100644 --- a/include/rexy/string_base.tpp +++ b/include/rexy/string_base.tpp @@ -204,8 +204,8 @@ namespace rexy{ m_r(std::forward(r)){} template constexpr string_cat_expr::string_cat_expr(const string_cat_expr& s): - m_l(std::forward(s.m_l)), - m_r(std::forward(s.m_r)){} + m_l(s.m_l), + m_r(s.m_r){} template constexpr string_cat_expr::string_cat_expr(string_cat_expr&& s): m_l(std::forward(s.m_l)),