add ptr
impl
bug fixed in bool
better support of const and non-const