Skip to content

Commit

Permalink
Add missing template intantiations of OutputGrid::get_line<>
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-dejoue committed Aug 12, 2023
1 parent bd7a6c9 commit f78b726
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/picross/src/output_grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ Line OutputGrid::get_line(Line::Index index) const
return line_from_line_span(p_grid->get_line(Type, index));
}

// Explicit template instantiation
template Line OutputGrid::get_line<Line::ROW>(Line::Index index) const;
template Line OutputGrid::get_line<Line::COL>(Line::Index index) const;

Line OutputGrid::get_line(Line::Type type, Line::Index index) const
{
return type == Line::ROW ? get_line<Line::ROW>(index) : get_line<Line::COL>(index);
Expand Down

0 comments on commit f78b726

Please sign in to comment.