fix misuse of C++14(C++1y) attribute [[deprecated]]
more modernize