C++17: std::string_view
Simple and useful.
C++17: std::string_view
by Marc Gregoire
From the article:
If you have to write a function that accepts a string, what type of parameter will you use?
February 10-15, Hagenberg, Austria
March 19-21, Madrid, Spain
April 1-4, Bristol, UK
June 16-21, Sofia, Bulgaria
By Adrien Hamelin | Jun 8, 2018 12:28 PM | Tags: c++17 basics
Simple and useful.
C++17: std::string_view
by Marc Gregoire
From the article:
If you have to write a function that accepts a string, what type of parameter will you use?
By Adrien Hamelin | Jun 8, 2018 12:25 PM | Tags: community
Have you registered for CppCon 2018 in September? Early bird registration is open now.
While we wait for this year’s event, we’re featuring videos of some of the 100+ talks from CppCon 2017 for you to enjoy. Here is today’s feature:
The Nightmare of Move Semantics for Trivial Classes
by Nicolai Josuttis
Summary of the talk:
Assume, we implement a very simple class having just multiple string members. Even ordinary application programmer prefer to make it simple and fast.
You think you know how to do it? Well beware! It can become a lot harder than you initially might assume.
So, let’s look at a trivial class with multiple string members and use live coding to see the effect using different implementation approaches (using constructors passing by value, by reference, by perfect forwarding, or doing more sophisticated tricks).
Sooner than later we will fall into the deep darkness of universal/forwarding references, enable_if, type traits, and concepts.
By robwirving | Jun 8, 2018 11:21 AM | Tags: None
Episode 153 of CppCast the only podcast for C++ developers by C++ developers. In this episode Rob and Jason are joined by Robert Schumacher from Microsoft to discuss the vcpkg package manager and more.
CppCast Episode 153: Vcpkg with Robert Schumacher
by Rob Irving and Jason Turner
About the interviewee:
Robert Schumacher is a developer on the Microsoft Visual C++ Libraries team and the lead developer for vcpkg. He has previously worked on the MSVC implementation of the Modules TS and is the current maintainer of Cpprestsdk. Besides work, he occasionally indulges in functional programming and arguments about whether inheritance is fundamentally flawed.
By Anastasia Kazakova | Jun 8, 2018 04:25 AM | Tags: None
A new edition of C++ annotated, a collection of C++ news by JetBrains C++ team.
C++ Annotated: January – May 2018
by Anastasia Kazakova
From the article:
What's coming in C++20, ACCU, C++ Russia and C++Now trip reports and talk recordings, Simon Brand's C++ tips collection, a bug in GCC, const position (east and west battle), deprecated std::iterator, new releases.
By Adrien Hamelin | Jun 6, 2018 12:06 PM | Tags: c++17 advanced
Really everything!
Everything You Need to Know About std::variant from C++17
by Bartlomiej Filipek
From the article:
Around the time C++17 was being standardized I saw magical terms like “discriminated union”, “type-safe union” or “sum type” floating around. Later it appeared to mean the same type: “variant”...
By Adrien Hamelin | Jun 6, 2018 11:43 AM | Tags: c++17 basics
Simple and useful.
C++17: Fallthrough in switch statements
by Marc Gregoire
From the article:
A C++ switch statement allows execution to fall through from one case to the next case when a break statement is missing...
By Adrien Hamelin | Jun 6, 2018 11:33 AM | Tags: community
Have you registered for CppCon 2018 in September? Early bird registration is open now.
While we wait for this year’s event, we’re featuring videos of some of the 100+ talks from CppCon 2017 for you to enjoy. Here is today’s feature:
EA’s Secret Weapon: Packages and Modules
by Scott Wardle
Summary of the talk:
A lot of people hate build systems. What if using a library was just as easy as header-only libraries?
EA has had a Secret Weapon called “packages” for over 14 years. EA's Packages are like Ruby’s Gems or Perl’s CPAN or Rust’s cargo. If you build a package from the package server it will download all of its dependencies.
This talk will be about what we have learned about packages and versioning while building our large AAA games over the last 10+ years. Finally, what do we see for the future, like how will C++ modules fit in?
In detail I will talk about:
-Package layout
-Package server
-Versioning control and packages
-Libraries teams and platform fragmentation
-Packages' effect on large scale architecture
-C++ Modules TS prototypes
By Meeting C++ | Jun 6, 2018 07:19 AM | Tags: speaking meetingcpp community basics
As it was a big success last year, Meeting C++ has again a track for new speakers, and is looking for folks which like to submit their talk ideas to the conference!
The call for Talks for Meeting C++ 2018 ends on June 17th.
Call for a more diverse program at Meeting C++ 2018!
by Jens Weller
From the article:
Last years track for new speakers was a great success, so Meeting C++ will dedicate a track to this now in every year. So I'd like to reach out to the C++ Community, who do you think has something interesting to say about C++ and could start speaking at this years Meeting C++?
By Meeting C++ | Jun 5, 2018 08:12 AM | Tags: meetingcpp community
Lots of User Groups are meeting in June, Meeting C++ has posted an detailed overview:
C++ User Group Meetings in June 2018
by Jens Weller
From the article:
The monthly overview of upcoming C++ User Group meetings. Join a C++ User Group near you, or learn how to start your own!
There are 4 new C++ User Groups: Houston, Prague, Cluj, New York.
By Adrien Hamelin | Jun 4, 2018 01:38 PM | Tags: c++17 basics
Do you know it?
C++17: std::byte
by Marc Gregoire
From the article:
C++17 introduced a new type: std::byte...