From 2e86abab3821d0e32cbd3433ae0840518b4f55f6 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Fri, 30 Jan 2015 12:49:41 +0530 Subject: [PATCH] Declaration of move ctor make is sufficient In C++14 declaration of Genotype's move ctor, Genotype(Genotype&&), renders Genotype's copy constructor and copy assignment operator deleted. We needn't do that. --- gamgee/variant/genotype.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gamgee/variant/genotype.h b/gamgee/variant/genotype.h index 02b12b57b..56f781e1a 100644 --- a/gamgee/variant/genotype.h +++ b/gamgee/variant/genotype.h @@ -29,17 +29,6 @@ class Genotype{ */ Genotype(const std::shared_ptr& body, const bcf_fmt_t* const format_ptr, const uint8_t* data_ptr); - /** - * @brief copying of the Genotype object is not allowed. - */ - Genotype(const Genotype& other) = delete; - - /** - * @brief copying of the Genotype object is not allowed. - * @param other Other genotype. - */ - Genotype& operator=(const Genotype& other) = delete; - /** * @brief Explicit default as recommended by many threads on stackoverflow. * @param other Other genotype.