c++: use YY_NOEXCEPT where it helps

Suggested by Don Macpherson.
<https://github.com/akimd/bison/issues/80>

* data/skeletons/c++.m4, data/skeletons/glr2.cc,
* data/skeletons/lalr1.cc, data/skeletons/stack.hh: Use YY_NOEXCEPT
where it helps constructors.
This commit is contained in:
Akim Demaille
2021-09-18 08:02:41 +02:00
parent dd6e78360a
commit 3fc3ef658e
4 changed files with 28 additions and 28 deletions

View File

@@ -37,7 +37,7 @@ m4_define([b4_stack_define],
typedef typename S::size_type size_type;
typedef typename std::ptrdiff_t index_type;
stack (size_type n = 200)
stack (size_type n = 200) YY_NOEXCEPT
: seq_ (n)
{}
@@ -116,7 +116,7 @@ m4_define([b4_stack_define],
class slice
{
public:
slice (const stack& stack, index_type range)
slice (const stack& stack, index_type range) YY_NOEXCEPT
: stack_ (stack)
, range_ (range)
{}