Skip to main content
added 11 characters in body
Source Link
iammilind
  • 70.5k
  • 39
  • 187
  • 364

You can't store arrays in containers because they are neither assignable nor copyable, which are the requirements for all objects that are used with Standard Library containers. 

The assignment operator is only attempted when you do push_backpush_back() which is why your code compiles without itcompiles without it.

You can't store arrays in containers because they are neither assignable nor copyable, which are the requirements for all objects that are used with Standard Library containers. The assignment operator is only attempted when you do push_back which is why your code compiles without it.

You can't store arrays in containers because they are neither assignable nor copyable, which are the requirements for all objects that are used with Standard Library containers. 

The assignment operator is only attempted when you do push_back() which is why your code compiles without it.

Source Link
Seth Carnegie
  • 75.3k
  • 22
  • 185
  • 252

You can't store arrays in containers because they are neither assignable nor copyable, which are the requirements for all objects that are used with Standard Library containers. The assignment operator is only attempted when you do push_back which is why your code compiles without it.