aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/AnnoyingScalar.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-07-18 23:33:07 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-07-18 23:33:07 +0200
commit863580fe881c32af82eb106817e71dc560d9e775 (patch)
tree44a1b4d4ee9d5d816ca1006e620e865cba7b08d4 /test/AnnoyingScalar.h
parent053ed97c72543d513e92cdef1b14839844664c34 (diff)
bug #1432: fix conservativeResize for non-relocatable scalar types. For those we need to by-pass realloc routines and fall-back to allocate as new - copy - delete. The remaining problem is that we don't have any mechanism to accurately determine whether a type is relocatable or not, so currently let's be super conservative using either RequireInitialization or std::is_trivially_copyable
Diffstat (limited to 'test/AnnoyingScalar.h')
-rw-r--r--test/AnnoyingScalar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/AnnoyingScalar.h b/test/AnnoyingScalar.h
index 08854a114..b5b1476fe 100644
--- a/test/AnnoyingScalar.h
+++ b/test/AnnoyingScalar.h
@@ -22,7 +22,7 @@ struct my_exception
// An AnnoyingScalar is a pseudo scalar type that:
// - can randomly through an exception in operator +
-// - randomly allocate on the heap or initialize a reference to itself making it non trivially copyable, nor movable.
+// - randomly allocate on the heap or initialize a reference to itself making it non trivially copyable, nor movable, nor relocatable.
class AnnoyingScalar
{