Skip to content

Commit

Permalink
Declare laplacian_function::get_directed_offsets as inline
Browse files Browse the repository at this point in the history
Fixes linker error due to multiple definitions.
The issue was missed during review of boostorg#500 as some public headers
are still missing from boost/gil.hpp.
  • Loading branch information
mloskot authored and meshtag committed Apr 21, 2021
1 parent e550571 commit 3650950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/gil/image_processing/diffusion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ namespace laplace_function {
and so on in clockwise manner. Leave element as zero if it is not
to be computed.
*/
std::array<gil::point_t, 8> get_directed_offsets()
inline std::array<gil::point_t, 8> get_directed_offsets()
{
return {point_t{-1, -1}, point_t{0, -1}, point_t{+1, -1}, point_t{+1, 0},
point_t{+1, +1}, point_t{0, +1}, point_t{-1, +1}, point_t{-1, 0}};
Expand Down

0 comments on commit 3650950

Please sign in to comment.