Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

done the hw3 #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

done the hw3 #57

wants to merge 1 commit into from

Conversation

wurongpi
Copy link

  1. 添加模板关键字
  2. 使用 std::transform 即可,函数返回类型写成 auto
  3. 实现 variant 与另一个对象的加法运算,如果只实现variant 之间的运算会报错,不如把另一个参数类型直接用另一个类型表示
  4. 同样是使用 std::visit即可

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

Successfully merging this pull request may close these issues.

1 participant