The template definitions for LastBinThresholdAction are only in the cxx file. So need to ensure within that file that instantations of that template are complete.