Skip to content

hw03 #25

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

hw03 #25

wants to merge 3 commits into from

Conversation

adelacvg
Copy link

@adelacvg adelacvg commented Jan 6, 2022

主要难点在于d+c+e,需要分类讨论重载不同的情况,为了减少重载个数用了sfinae技术,使用enable_if_t,为了防止与之后的偏特化冲突把默认返回的void改成bool然后赋值为true。重载<<运算符不知道为什么无法像重载+一样直接return,必须单独return os,会报错无法复制os,但按理说都应该是引用才对。编译使用的版本是g++ 11.2,重载输出尝试使用c++20的ranges库,但是改了cmakelist的cXX为20还是会报错,不知道为什么还不支持。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant