]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
dmclock: error: ‘function’ in namespace ‘std’ does not name a template type 14909/head
authorJos Collin <jcollin@redhat.com>
Tue, 2 May 2017 10:05:09 +0000 (15:35 +0530)
committerJos Collin <jcollin@redhat.com>
Tue, 2 May 2017 10:05:14 +0000 (15:35 +0530)
commit902561e9c35d4679f85217c2ff23cc81604a4b0b
tree312cb1aec390087d080765b8fc3685c444ddc7cf
parent1edcf1cb110005acdd2fce24bd5144fea2f68da1
dmclock: error: ‘function’ in namespace ‘std’ does not name a template type

The following error appears during make:

In file included from ceph/src/dmclock/support/src/run_every.cc:10:0:
ceph/src/dmclock/support/src/run_every.h:30:10: error: ‘function’ in namespace ‘std’ does not name a template type
     std::function<void()>     body;
          ^~~~~~~~
ceph/src/dmclock/support/src/run_every.h:46:12: error: ‘std::function’ has not been declared
       std::function<void()> _body) :
            ^~~~~~~~
ceph/src/dmclock/support/src/run_every.h:46:20: error: expected ‘,’ or ‘...’ before ‘<’ token
       std::function<void()> _body) :
                    ^
ceph/src/dmclock/support/src/run_every.h: In constructor ‘crimson::RunEvery::RunEvery(D, int)’:
ceph/src/dmclock/support/src/run_every.h:48:7: error: class ‘crimson::RunEvery’ does not have any field named ‘body’
       body(_body)
       ^~~~
ceph/src/dmclock/support/src/run_every.h:48:12: error: ‘_body’ was not declared in this scope
       body(_body)
            ^~~~~
ceph/src/dmclock/support/src/run_every.cc: In member function ‘void crimson::RunEvery::run()’:
ceph/src/dmclock/support/src/run_every.cc:70:7: error: ‘body’ was not declared in this scope
       body();
       ^~~~
ceph/src/dmclock/support/src/run_every.cc:70:7: note: suggested alternative: ‘bool’
       body();
       ^~~~
       bool

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/dmclock/support/src/run_every.h