Skip to content

Instantly share code, notes, and snippets.

@hosiawak
Created November 6, 2020 08:57
Show Gist options
  • Save hosiawak/70852c2552d031aae9a020554c850a38 to your computer and use it in GitHub Desktop.
Save hosiawak/70852c2552d031aae9a020554c850a38 to your computer and use it in GitHub Desktop.
libtool: compile: c++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I./external/bitcoin-ripemd160/ -I./external/libsodium/src/libsodium/include/ -I./external/secp256k1/include/ -I./external/jsmn -Wall -Werror -pthread -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -c Boss/Mod/PeerCompetitorFeeMonitor/Main.cpp -o Boss/Mod/PeerCompetitorFeeMonitor/libclboss_la-Main.o
In file included from Boss/Mod/PeerCompetitorFeeMonitor/Main.cpp:2:
In file included from ./Boss/Mod/PeerCompetitorFeeMonitor/Surveyor.hpp:4:
./Stats/WeightedMedian.hpp:30:30: error: no template named 'plus' in namespace 'std'
, typename AddWeight = std::plus<Weight>
~~~~~^
./Stats/WeightedMedian.hpp:30:13: error: template parameter missing a default argument
, typename AddWeight = std::plus<Weight>
^
./Stats/WeightedMedian.hpp:29:26: note: previous default template argument defined here
, typename CompWeight = std::less<Weight>
^
In file included from Boss/Mod/PeerCompetitorFeeMonitor/Main.cpp:2:
./Boss/Mod/PeerCompetitorFeeMonitor/Surveyor.hpp:34:9: error: too few template arguments for class template 'WeightedMedian'
Stats::WeightedMedian<std::uint32_t, Ln::Amount> bases;
^
./Stats/WeightedMedian.hpp:32:7: note: template is declared here
class WeightedMedian {
^
In file included from Boss/Mod/PeerCompetitorFeeMonitor/Main.cpp:2:
./Boss/Mod/PeerCompetitorFeeMonitor/Surveyor.hpp:35:9: error: too few template arguments for class template 'WeightedMedian'
Stats::WeightedMedian<std::uint32_t, Ln::Amount> proportionals;
^
./Stats/WeightedMedian.hpp:32:7: note: template is declared here
class WeightedMedian {
^
4 errors generated.
gmake[2]: *** [Makefile:3628: Boss/Mod/PeerCompetitorFeeMonitor/libclboss_la-Main.lo] Error 1
gmake[2]: Leaving directory '/root/cln/clboss-vector-bool-emplace'
gmake[1]: *** [Makefile:4173: all-recursive] Error 1
gmake[1]: Leaving directory '/root/cln/clboss-vector-bool-emplace'
gmake: *** [Makefile:1785: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment