Click here to Skip to main content
14,933,227 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: C++ is love Pin
Mladen Janković15-Dec-20 14:46
MemberMladen Janković15-Dec-20 14:46 
GeneralRe: C++ is love Pin
honey the codewitch15-Dec-20 17:06
mvahoney the codewitch15-Dec-20 17:06 
GeneralRe: C++ is love Pin
Mladen Janković16-Dec-20 1:28
MemberMladen Janković16-Dec-20 1:28 
GeneralRe: C++ is love Pin
Mladen Janković15-Dec-20 15:04
MemberMladen Janković15-Dec-20 15:04 
GeneralRe: C++ is love Pin
honey the codewitch15-Dec-20 17:07
mvahoney the codewitch15-Dec-20 17:07 
GeneralRe: C++ is love Pin
Mladen Janković16-Dec-20 0:27
MemberMladen Janković16-Dec-20 0:27 
GeneralRe: C++ is love Pin
honey the codewitch16-Dec-20 0:32
mvahoney the codewitch16-Dec-20 0:32 
GeneralRe: C++ is love Pin
Mladen Janković16-Dec-20 1:13
MemberMladen Janković16-Dec-20 1:13 
Are you sure it does not compile? Copy and move operations does not produce error

Rules for which SMFs get deleted by compiler and which remain defaulted are a bit complex, so that's why it's better to be explicit about it and = delete those that you don't want and = default those that you want to keep.

The second point is to always prefer = default over {} since you retain triviality which is actual concept. Trivial type are easier to handle, subject to more optimizations and can be used in wider range of situations. It something that you probably don't need for arena allocator, so in this case it would be about habit and consistency.
GeneralRe: C++ is love Pin
honey the codewitch16-Dec-20 1:19
mvahoney the codewitch16-Dec-20 1:19 
JokeRe: C++ is love Pin
Slacker00714-Dec-20 10:33
professionalSlacker00714-Dec-20 10:33 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 17:08
mvahoney the codewitch14-Dec-20 17:08 
GeneralRe: C++ is love Pin
den2k8814-Dec-20 21:48
professionalden2k8814-Dec-20 21:48 
GeneralRe: C++ is love Pin
Slacker00714-Dec-20 23:02
professionalSlacker00714-Dec-20 23:02 
GeneralRe: C++ is love Pin
honey the codewitch15-Dec-20 1:15
mvahoney the codewitch15-Dec-20 1:15 
GeneralRe: C++ is love Pin
Slacker00715-Dec-20 3:11
professionalSlacker00715-Dec-20 3:11 
GeneralRe: C++ is love Pin
honey the codewitch15-Dec-20 3:20
mvahoney the codewitch15-Dec-20 3:20 
GeneralRe: C++ is love Pin
Randor 14-Dec-20 9:27
professional Randor 14-Dec-20 9:27 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 9:50
mvahoney the codewitch14-Dec-20 9:50 
GeneralRe: C++ is love Pin
Johann Gerell14-Dec-20 22:25
MemberJohann Gerell14-Dec-20 22:25 
GeneralRe: C++ is love Pin
CodeWraith14-Dec-20 9:28
MemberCodeWraith14-Dec-20 9:28 
GeneralRe: C++ is love Pin
Jörgen Andersson14-Dec-20 9:28
professionalJörgen Andersson14-Dec-20 9:28 
GeneralRe: C++ is love Pin
CodeWraith14-Dec-20 9:38
MemberCodeWraith14-Dec-20 9:38 
GeneralRe: C++ is love Pin
den2k8814-Dec-20 21:52
professionalden2k8814-Dec-20 21:52 
GeneralRe: C++ is love Pin
Sander Rossel14-Dec-20 9:31
professionalSander Rossel14-Dec-20 9:31 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 9:42
mvahoney the codewitch14-Dec-20 9:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.