Deprecating Raw Pointers in C++20

This forum is reserved for everything you want to talk about. It could be about programming, opinions, open source programs, development in general, or just cool stuff to share!
Post Reply
Ronald
Super wx Problem Solver
Super wx Problem Solver
Posts: 306
Joined: Mon Mar 05, 2018 4:17 am

Deprecating Raw Pointers in C++20

Post by Ronald »

The C++ Standard moves at a fast pace. Probably, not all developers caught up with C++11/14 yet and recently we got C++17. Now it’ time to prepare C++20!
A few weeks ago The C++ Committee had an official ISO meeting in Jacksonville, FL (12-17 March 2018) where they worked hard on the new specification.

Besides many significant things that were discussed at the meeting like modules, concepts, ranges, The C++ Committee accepted one hugely anticipated feature: deprecation of raw pointers!
http://www.bfilipek.com/2018/04/depreca ... nters.html

01 April 2018
Manolo
Can't get richer than this
Can't get richer than this
Posts: 827
Joined: Mon Apr 30, 2012 11:07 pm

Re: Deprecating Raw Pointers in C++20

Post by Manolo »

While it may become true (deprecating raw pointers), I'm sure all compilers will allow some flag to allow them, even deprecated.
There are so much C++99 code still running and being maintained that changing all raw pointers to smart pointers is more risky than worth.
User avatar
shawnhcorey
Knows some wx things
Knows some wx things
Posts: 41
Joined: Mon Nov 19, 2012 3:29 pm
Location: The Great White North

Re: Deprecating Raw Pointers in C++20

Post by shawnhcorey »

Be wary of anything you read on April 1st. :)
WARNING: Highly caffeinated ☕. Approach with caution 🚧.
Post Reply