odbxx.hxx should #include <functional>

Issue #226 resolved
Former user created an issue

Trying new odbxx.hxx on Centos-7 setup.

Got compile error when I initially added odb class to frontend:

In file included from febrb.cxx:12:0: /home/mpmtdaq/packages/midas/include/odbxx.hxx:369:7: error: ‘function’ in namespace ‘std’ does not name a type std::function<void(midas::odb &)> m_watch_callback;

Fixed by adding

#include <functional>

to start of odbxx.hxx. Seems that should be added permanently.

Comments (2)

  1. Log in to comment