Skip to content

Commit bfcc7c8

Browse files
victor-gonzalezsawenzel
authored andcommitted
Declaring as inline header defined function
If the header file is include by several compiled unit which happen to go to the same the linker complains about multiple defined functions.
1 parent 16c24dd commit bfcc7c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Framework/Core/include/Framework/BinningPolicy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace o2::framework
2222

2323
namespace binning_helpers
2424
{
25-
void expandConstantBinning(std::vector<double> const& bins, std::vector<double>& expanded)
25+
inline void expandConstantBinning(std::vector<double> const& bins, std::vector<double>& expanded)
2626
{
2727
if (bins[0] != VARIABLE_WIDTH) {
2828
int nBins = static_cast<int>(bins[0]);

0 commit comments

Comments
 (0)