Skip to content

Commit

Permalink
Fix linkage issue with Python-exposed constant
Browse files Browse the repository at this point in the history
  • Loading branch information
dcdehaas committed Jul 26, 2024
1 parent 55ec166 commit efb3bf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/grgl/grgnode.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ using GRGNodePtr = std::shared_ptr<GRGNode>;
* that apply to everything except samples (individualCoalCount). This is a waste of space.
*/
struct NodeData {
static constexpr NodeIDSizeT COAL_COUNT_NOT_SET = std::numeric_limits<NodeIDSizeT>::max();
static const NodeIDSizeT COAL_COUNT_NOT_SET;

NodeData() = default;
explicit NodeData(const PopulationID popId)
Expand Down
2 changes: 2 additions & 0 deletions src/grg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

namespace grgl {

const NodeIDSizeT NodeData::COAL_COUNT_NOT_SET = std::numeric_limits<NodeIDSizeT>::max();

using bitvect = std::vector<bool>;

MutationId GRG::addMutation(const Mutation& mutation, const NodeID nodeId) {
Expand Down

0 comments on commit efb3bf2

Please sign in to comment.