Skip to content

Conversation

@vaeng
Copy link
Contributor

@vaeng vaeng commented Mar 4, 2024

As we will soon have a smart pointer concept, it makes sense to introduce auto as well.

@vaeng vaeng added x:module/concept Work on Concepts x:size/large Large amount of work labels Mar 4, 2024
Copy link
Contributor Author

@vaeng vaeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

about is missing, will be added when introduction is finalized

```cpp
auto dragon_population{5}; // dragon_population is deduced as an integer
auto westeros{7.7777}; // westeros is deduced as a double
auto wedding_location{"The Twins"}; // wedding_location is deduced as a const char*, not std::string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! :D

@vaeng vaeng requested a review from siebenschlaefer March 5, 2024 13:41
@vaeng vaeng merged commit ea33bcf into main Mar 12, 2024
@vaeng vaeng deleted the feat--add-auto-concept branch March 12, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:module/concept Work on Concepts x:size/large Large amount of work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants