Le 20/04/2017 à 23:49, Guillaume MM a écrit :
commit d4ea07705a88089519b80db3307a7d940fbae40d
Author: Guillaume MM <g...@lyx.org>
Date: Mon Apr 3 00:31:37 2017 +0200
Mover.h: let move be defined
This commit leads to a compile error with gcc 4.6. I guess it is due to
this compiler's weak C++11 support.
JMarc
---
src/Mover.h | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/Mover.h b/src/Mover.h
index 4d1c1c7..e432a3d 100644
--- a/src/Mover.h
+++ b/src/Mover.h
@@ -27,7 +27,13 @@ namespace support { class FileName; }
class Mover
{
public:
- virtual ~Mover() {}
+ virtual ~Mover() = default;
+ Mover(Mover &&) = default;
+ Mover & operator=(Mover &&) = default;
+ Mover(Mover const &) = default;
+ Mover & operator=(Mover const &) = default;
+
+ Mover() = default;
/** Copy file @c from to @c to.
* This version should be used to copy files from the original
@@ -109,9 +115,7 @@ protected:
class SpecialisedMover : public Mover
{
public:
- SpecialisedMover() {}
-
- virtual ~SpecialisedMover() {}
+ SpecialisedMover() = default;
/** @c command should be of the form
* <code>