TF++, Miscellaneous classes and modules in C++:

◆ report_deprecated()

void tfxx::error::report_deprecated ( const char *  function,
const char *  reason 
)

report deprecated function

report deprecation of a function

Parameters
functionname of deprecated function
reasonthe reason for deprecating the function should finish a sentence which started with "because"

Definition at line 155 of file error.cc.

157  {
158  std::cerr << "WARNING: program uses deprecated function in libtfxx\n"
159  << "* " << function << std::endl;
160  std::cerr << "* This function should no longer be used because\n"
161  << "* " << reason << std::endl;
162  std::cerr << "* Please place a ticket at "
163  "http://git.scc.kit.edu:Seitosh/Seitosh"
164  << std::endl;
165  }