|
|
@@ -93,7 +93,21 @@ is_default_constructible() const {
|
|
|
*/
|
|
|
bool CPPArrayType::
|
|
|
is_copy_constructible() const {
|
|
|
- return false;
|
|
|
+ // This is technically not exactly true, but array data members do not
|
|
|
+ // prevent C++ implicit copy constructor generation rules, so we need to
|
|
|
+ // return true here.
|
|
|
+ // If this is a problem, we will need to create a separate method for the
|
|
|
+ // purpose of checking copyability as a data member.
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Returns true if the type is copy-assignable.
|
|
|
+ */
|
|
|
+bool CPPArrayType::
|
|
|
+is_copy_assignable() const {
|
|
|
+ // Same story as is_copy_constructible.
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
/**
|