Default constructor cannot be referenced it a deleted function
-
- Posts: 10
- Joined: April 13th, 2020, 8:47 pm
Default constructor cannot be referenced it a deleted function
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.
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Default constructor cannot be referenced it a deleted function
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?
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