Fix warnings about implicit copy assignments.

This commit is contained in:
Martin Whitaker 2021-01-01 20:24:31 +00:00
parent 2e4bf05e21
commit 51a171a399
2 changed files with 9 additions and 2 deletions

View File

@ -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;

View File

@ -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);