fixed compile error : remove constexpr in friend function