Default constructor cannot be referenced it a deleted function

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
Lividpayment
Posts: 10
Joined: April 13th, 2020, 8:47 pm

Default constructor cannot be referenced it a deleted function

Post by Lividpayment » August 5th, 2020, 2:40 pm

Can you someone give me some idea of what type of error this might come from? I got when I tried to create a default constructor in the brick class for fart annoyed.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Default constructor cannot be referenced it a deleted function

Post by albinopapa » August 5th, 2020, 4:51 pm

If you're trying to do Brick()=default; then all members of Brick must also have a default constructor in order for the compiler to be able to generate a default constructor.

What are the member types in Brick?
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Post Reply