JohannesEbke/a4 — Issue #36: Problem using cutflow
Author: pwaller
Created: 2011-10-20 15:10:18+00:00
State: open
Labels: Bug

I'm trying to do the following:

auto cut = S.T("cutflow");
cut.fill("initial");

and I get:

In file included from src/analysis.cpp:5:0:
/user1/pwaller/Projects/a4/build/include/a4/cutflow.h: In member function 'void a4::hist::Cutflow::fillw(const double&, const Args& ...) [with Args = {char [8]}]':
/user1/pwaller/Projects/a4/build/include/a4/cutflow.h:44:49: instantiated from 'void a4::hist::Cutflow::fill(const Args& ...) [with Args = {char [8]}]'
src/analysis.cpp:34:31: instantiated from here
/user1/pwaller/Projects/a4/build/include/a4/cutflow.h:50:13: error: invalid conversion from 'uintptr_t {aka long unsigned int}' to 'void*' [-fpermissive]
/user1/pwaller/Projects/a4/build/include/a4/cutflow.h:51:13: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
/user1/pwaller/Projects/a4/build/include/a4/cutflow.h:51:13: error: invalid conversion from 'void*' to 'uintptr_t {aka long unsigned int}' [-fpermissive]
/user1/pwaller/Projects/a4/build/include/a4/cutflow.h:54:14: error: initializing argument 1 of 'void a4::hist::Cutflow::fill_internal(const uintptr_t&, const double&)' [-fpermissive]