Skip to content

Commit

Permalink
#449 add explicit to node constructor (#484)
Browse files Browse the repository at this point in the history
* Changes defines in include guards to avoid undefined behaviour

* Adds Explicit constructor to Node class (#449)

* Update cmake.yml to run tests

---------

Co-authored-by: Olek Raymond <[email protected]>
  • Loading branch information
JustCallMeRay and OlekRaymond authored Feb 3, 2025
1 parent 985625e commit 1e6b0ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: CMake

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
Expand Down
2 changes: 1 addition & 1 deletion include/CXXGraph/Node/Node_decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Node {

Node(const std::string &, const T &data);
// Move constructor
Node(const std::string &, T &&data) noexcept;
explicit Node(const std::string &, T &&data) noexcept;
~Node() = default;
const CXXGraph::id_t &getId() const;
const std::string &getUserId() const;
Expand Down

0 comments on commit 1e6b0ce

Please sign in to comment.