Use EPICS_DEPRECATED macro

Don't print error messages when a deprecated function is called,
make it a compile-time warning instead.
This commit is contained in:
Andrew Johnson
2016-04-21 15:52:34 -05:00
parent 899dc4e9be
commit 2b7b38a3c7

View File

@@ -18,6 +18,7 @@
#include <list>
#include <iostream>
#include <compilerDependencies.h>
#include <pv/requester.h>
#include <pv/status.h>
#include <pv/event.h>
@@ -107,11 +108,10 @@ public:
* \deprecated This method will go away in future versions. Use get instead.
* @return shared pointer to the single instance
*/
static PvaClientPtr create()
{
std::cerr << "create is deprecated. Use get instead\n";
return get("pva ca");
}
static PvaClientPtr create() EPICS_DEPRECATED
{
return get("pva ca");
}
/** Get the requester name.
* @return The name.
*/