add second template parameter in FlagManager

Signed-off-by: anti-freak <antifreak2011@gmail.com>