@@ -62,10 +62,8 @@ namespace chaiscript
6262
6363 Data (const Data &) = delete ;
6464
65- #if !defined(__APPLE__) && (!defined(_MSC_VER) || _MSC_VER != 1800)
6665 Data (Data &&) = default ;
6766 Data &operator =(Data &&rhs) = default ;
68- #endif
6967
7068
7169 Type_Info m_type_info;
@@ -189,11 +187,8 @@ namespace chaiscript
189187 {
190188 }
191189
192- #if !defined(_MSC_VER) || _MSC_VER != 1800
193190 Boxed_Value (Boxed_Value&&) = default ;
194191 Boxed_Value& operator =(Boxed_Value&&) = default ;
195- #endif
196-
197192 Boxed_Value (const Boxed_Value&) = default ;
198193 Boxed_Value& operator =(const Boxed_Value&) = default ;
199194
@@ -210,63 +205,63 @@ namespace chaiscript
210205 return *this ;
211206 }
212207
213- const Type_Info &get_type_info () const CHAISCRIPT_NOEXCEPT
208+ const Type_Info &get_type_info () const noexcept
214209 {
215210 return m_data->m_type_info ;
216211 }
217212
218213 // / return true if the object is uninitialized
219- bool is_undef () const CHAISCRIPT_NOEXCEPT
214+ bool is_undef () const noexcept
220215 {
221216 return m_data->m_type_info .is_undef ();
222217 }
223218
224- bool is_const () const CHAISCRIPT_NOEXCEPT
219+ bool is_const () const noexcept
225220 {
226221 return m_data->m_type_info .is_const ();
227222 }
228223
229- bool is_type (const Type_Info &ti) const CHAISCRIPT_NOEXCEPT
224+ bool is_type (const Type_Info &ti) const noexcept
230225 {
231226 return m_data->m_type_info .bare_equal (ti);
232227 }
233228
234- bool is_null () const CHAISCRIPT_NOEXCEPT
229+ bool is_null () const noexcept
235230 {
236231 return (m_data->m_data_ptr == nullptr && m_data->m_const_data_ptr == nullptr );
237232 }
238233
239- const chaiscript::detail::Any & get () const CHAISCRIPT_NOEXCEPT
234+ const chaiscript::detail::Any & get () const noexcept
240235 {
241236 return m_data->m_obj ;
242237 }
243238
244- bool is_ref () const CHAISCRIPT_NOEXCEPT
239+ bool is_ref () const noexcept
245240 {
246241 return m_data->m_is_ref ;
247242 }
248243
249- bool is_return_value () const CHAISCRIPT_NOEXCEPT
244+ bool is_return_value () const noexcept
250245 {
251246 return m_data->m_return_value ;
252247 }
253248
254- void reset_return_value () const CHAISCRIPT_NOEXCEPT
249+ void reset_return_value () const noexcept
255250 {
256251 m_data->m_return_value = false ;
257252 }
258253
259- bool is_pointer () const CHAISCRIPT_NOEXCEPT
254+ bool is_pointer () const noexcept
260255 {
261256 return !is_ref ();
262257 }
263258
264- void *get_ptr () const CHAISCRIPT_NOEXCEPT
259+ void *get_ptr () const noexcept
265260 {
266261 return m_data->m_data_ptr ;
267262 }
268263
269- const void *get_const_ptr () const CHAISCRIPT_NOEXCEPT
264+ const void *get_const_ptr () const noexcept
270265 {
271266 return m_data->m_const_data_ptr ;
272267 }
@@ -306,7 +301,7 @@ namespace chaiscript
306301
307302
308303 // / \returns true if the two Boxed_Values share the same internal type
309- static bool type_match (const Boxed_Value &l, const Boxed_Value &r) CHAISCRIPT_NOEXCEPT
304+ static bool type_match (const Boxed_Value &l, const Boxed_Value &r) noexcept
310305 {
311306 return l.get_type_info () == r.get_type_info ();
312307 }
@@ -416,18 +411,16 @@ namespace chaiscript
416411 return detail::const_var_impl (t);
417412 }
418413
419- #ifdef CHAISCRIPT_HAS_MAGIC_STATICS
420414 inline Boxed_Value const_var (bool b) {
421- static auto t = detail::const_var_impl (true );
422- static auto f = detail::const_var_impl (false );
415+ static const auto t = detail::const_var_impl (true );
416+ static const auto f = detail::const_var_impl (false );
423417
424418 if (b) {
425419 return t;
426420 } else {
427421 return f;
428422 }
429423 }
430- #endif
431424
432425}
433426
0 commit comments