@@ -103,7 +103,7 @@ class irept
103
103
bool is_nil () const { return id ()==ID_nil; }
104
104
bool is_not_nil () const { return id ()!=ID_nil; }
105
105
106
- explicit irept (const irep_idt &_id)
106
+ explicit irept (const irep_idt &_id) noexcept
107
107
#ifdef SHARING
108
108
:data(&empty_d)
109
109
#endif
@@ -113,12 +113,12 @@ class irept
113
113
114
114
#ifdef SHARING
115
115
// constructor for blank irep
116
- irept ():data(&empty_d)
116
+ irept () noexcept :data(&empty_d)
117
117
{
118
118
}
119
119
120
120
// copy constructor
121
- irept (const irept &irep):data(irep.data)
121
+ irept (const irept &irep) noexcept :data(irep.data)
122
122
{
123
123
if (data!=&empty_d)
124
124
{
@@ -135,7 +135,7 @@ class irept
135
135
// Copy from rvalue reference.
136
136
// Note that this does avoid a branch compared to the
137
137
// standard copy constructor above.
138
- irept (irept &&irep):data(irep.data)
138
+ irept (irept &&irep) noexcept :data(irep.data)
139
139
{
140
140
#ifdef IREP_DEBUG
141
141
std::cout << " COPY MOVE\n " ;
@@ -165,7 +165,7 @@ class irept
165
165
#ifdef USE_MOVE
166
166
// Note that the move assignment operator does avoid
167
167
// three branches compared to standard operator above.
168
- irept &operator =(irept &&irep)
168
+ irept &operator =(irept &&irep) noexcept
169
169
{
170
170
#ifdef IREP_DEBUG
171
171
std::cout << " ASSIGN MOVE\n " ;
0 commit comments