Skip to content

Commit

Permalink
Fix the constness of operator=
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Ricardo Ziviani <[email protected]>
  • Loading branch information
jrziviani committed Apr 20, 2019
1 parent bc9c8bc commit e6d4697
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions include/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ namespace amps
{
}

vobject(vobject &&) = default;
vobject(const vobject &) = default;
~vobject() = default;
vobject(vobject &&) = default;
vobject(const vobject &) = default;
~vobject() = default;

vobject &operator=(vobject &) = default;
vobject &operator=(vobject &&) = default;
vobject &operator=(const vobject &) = default;
vobject &operator=(vobject &&) = default;

bool get_bool_or(bool alt) const;
number_t get_number_or(number_t alt) const;
Expand Down
12 changes: 6 additions & 6 deletions include/stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ namespace amps
objects stack_;

public:
gstack() = default;
gstack(const gstack&) = delete;
gstack(gstack&&) = delete;
~gstack() = default;
gstack() = default;
gstack(const gstack&) = delete;
gstack(gstack&&) = delete;
~gstack() = default;

gstack &operator=(gstack&) = delete;
gstack &operator=(gstack&&) = delete;
gstack operator=(const gstack&) = delete;
gstack operator=(gstack&&) = delete;

object pop();
object look_back() const;
Expand Down

0 comments on commit e6d4697

Please sign in to comment.