Skip to content

Navigation Menu

Sign in
Sign up

feat(cpp14): add 07-deprecated-attribute book chapter, exercise, solution, and build wiring - #81

Draft
lczllx wants to merge 1 commit into
mcpp-community:main from
lczllx:feat/cpp14-07-deprecated-attribute
Draft

feat(cpp14): add 07-deprecated-attribute book chapter, exercise, solution, and build wiring #81
lczllx wants to merge 1 commit into
mcpp-community:main from
lczllx:feat/cpp14-07-deprecated-attribute

Conversation

@lczllx

@lczllx lczllx commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

feat(cpp14): add 07-deprecated-attribute book chapter, exercise, solution, and build wiring

Add the eighth C++14 chapter covering the [[deprecated]] attribute.

Book chapter (zh + en):

  • section 一/I: Basic usage — marking functions and variables
  • section 二/II: Real-world case — _CXX17_DEPRECATE_C_HEADER macro
    from vendored msvc-stl/stl/inc/yvals_core.h#L1057-L1061
  • section 三/III: Notes
  • section 四/IV: Exercise topics and d2x checker command
  • section 五/V: External resources

Exercise:
0. Mark a deprecated function with a message and verify it still
compiles and works correctly. 2 D2X_YOUR_ANSWER.

Build wiring:

  • register 07 target in dslings/cpp14, dslings/en/cpp14,
    solutions/cpp14
  • add 07 entry to zh/en SUMMARY.md

Closes #69

CLA: I have read the CLA and by submitting this PR agree to its terms.

Book chapter (zh + en):
 - section 一/I: Basic usage — marking functions and variables
 - section 二/II: Real-world case — _CXX17_DEPRECATE_C_HEADER macro
 from msvc-stl/stl/inc/yvals_core.h#L1057-L1061
 - section 三/III: Notes — applicable targets, optional messages
 - section 四/IV: Exercise topics and d2x checker command
 - section 五/V: External resources
Exercise:
 0. Mark a deprecated function and verify it still works.
 2 D2X_YOUR_ANSWER.
Build wiring:
 - register 07 target in dslings/cpp14, dslings/en/cpp14,
 solutions/cpp14
 - add 07 entry to zh/en SUMMARY.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

SubTask: C++14 - 07 - deprecated attribute

1 participant

AltStyle によって変換されたページ (->オリジナル) /