Skip to content

New Standard library for cpp2? #620

Closed Answered by hsutter
12345swordy asked this question in Q&A
Discussion options

You must be logged in to vote

The entire C++ standard library is available. A few parts still require contortions to use (e.g., I haven't written declaring function types yet for std::function so you write an extra line as a workaround) but they are all intended to be available.

Using the C++ standard library, and other libraries, is intended to be "fully supported from Cpp2, but better when used from Cpp2." In particular, by default bounds checking is enabled, so using subscripting on any sequence container from Cpp2 code automatically does bounds checking (without any change to the library code, the check is injected at the Cpp2 call site).

For a few particularly dangerous C++ standard library features that we alrea…

Replies: 6 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JohelEGP
Comment options

Comment options

You must be logged in to vote
5 replies
@JohelEGP
Comment options

@JohelEGP
Comment options

@YagaoDirac
Comment options

@hsutter
Comment options

@YagaoDirac
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by hsutter
Comment options

You must be logged in to vote
1 reply
@JohelEGP
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants