From 51a171a3993b4ab8078b76b430337046df5e73b9 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Fri, 1 Jan 2021 20:24:31 +0000 Subject: [PATCH] Fix warnings about implicit copy assignments. --- vhdlpp/expression.h | 6 +++++- vvp/vpi_priv.h | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/vhdlpp/expression.h b/vhdlpp/expression.h index 3ae6c2bb9..c93e600ad 100644 --- a/vhdlpp/expression.h +++ b/vhdlpp/expression.h @@ -1,7 +1,7 @@ #ifndef IVL_expression_H #define IVL_expression_H /* - * Copyright (c) 2011-2018 Stephen Williams (steve@icarus.com) + * Copyright (c) 2011-2021 Stephen Williams (steve@icarus.com) * Copyright CERN 2015 / Stephen Williams (steve@icarus.com), * Copyright CERN 2016 * @author Maciej Suminski (maciej.suminski@cern.ch) @@ -291,6 +291,10 @@ class ExpAggregate : public Expression { expr = safe_clone(other.expr); } +# if __cplusplus >= 201103L + constexpr choice_element& operator = (const choice_element&that) = default; +# endif + choice_t*choice; Expression*expr; bool alias_flag; diff --git a/vvp/vpi_priv.h b/vvp/vpi_priv.h index 434770fc9..42b25172c 100644 --- a/vvp/vpi_priv.h +++ b/vvp/vpi_priv.h @@ -1,7 +1,7 @@ #ifndef IVL_vpi_priv_H #define IVL_vpi_priv_H /* - * Copyright (c) 2001-2020 Stephen Williams (steve@icarus.com) + * Copyright (c) 2001-2021 Stephen Williams (steve@icarus.com) * Copyright (c) 2016 CERN Michele Castellana (michele.castellana@cern.ch) * * This source code is free software; you can redistribute it @@ -160,6 +160,9 @@ class __vpiDecConst : public __vpiHandle { public: explicit __vpiDecConst(int val =0); __vpiDecConst(const __vpiDecConst&that); +# if __cplusplus >= 201103L + constexpr __vpiDecConst& operator = (const __vpiDecConst&that) = default; +# endif int get_type_code(void) const; int vpi_get(int code); void vpi_get_value(p_vpi_value val);