From bc364203c2d88e347480f4b68bceaacfaa7eec6e Mon Sep 17 00:00:00 2001 From: Yuanjie Huang Date: Tue, 29 Jan 2019 12:54:15 +0800 Subject: [PATCH] make complex specialization class instead of struct --- include/ap_fixed_special.h | 5 +++-- include/ap_int_special.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/ap_fixed_special.h b/include/ap_fixed_special.h index 64853b3..4484d44 100644 --- a/include/ap_fixed_special.h +++ b/include/ap_fixed_special.h @@ -52,7 +52,8 @@ namespace std { in standard 26.2.4 and 26.2.5. */ template -struct complex > { +class complex > { + public: typedef ap_fixed<_AP_W, _AP_I, _AP_Q, _AP_O, _AP_N> _Tp; typedef _Tp value_type; @@ -173,7 +174,7 @@ struct complex > { _Tp _M_real; _Tp _M_imag; -}; // struct complex > +}; // class complex > /* Non-member operations diff --git a/include/ap_int_special.h b/include/ap_int_special.h index 802f484..e45f3d0 100644 --- a/include/ap_int_special.h +++ b/include/ap_int_special.h @@ -52,7 +52,8 @@ namespace std { in standard 26.2.4 and 26.2.5. */ template -struct complex > { +class complex > { + public: typedef ap_int<_AP_W> _Tp; typedef _Tp value_type; @@ -173,7 +174,7 @@ struct complex > { _Tp _M_real; _Tp _M_imag; -}; // struct complex > +}; // class complex > /*