I need to add a new constructor to the existing enforcer,
Enforcer(const std::string& model_path, std::stringstream && policy), and I see that I must add the CTOR declaration in 2 files,
casbin/include/casbin/casbin_enforcer.h
and
contrib/casbin/casbin/enforcer.h
If I add the CTOR declaration only into one of them, compilation fails. So I just don't understand why casbin has two headers for enforcer?
What is the correct way to add a new constructor to enforcer?
Hi All,
I need to add a new constructor to the existing enforcer,
Enforcer(const std::string& model_path, std::stringstream && policy)
, and I see that I must add the CTOR declaration in 2 files,casbin/include/casbin/casbin_enforcer.h and contrib/casbin/casbin/enforcer.h
If I add the CTOR declaration only into one of them, compilation fails. So I just don't understand why casbin has two headers for enforcer?
What is the correct way to add a new constructor to enforcer?