Deprecate binpac::string_to_val

This commit is contained in:
Jon Siwek 2020-04-20 14:43:06 -07:00
parent 743303950b
commit 6c0a9b0d8f
2 changed files with 3 additions and 0 deletions

View file

@ -23,6 +23,7 @@ typedef Val* BroVal;
typedef PortVal* BroPortVal;
typedef StringVal* BroStringVal;
[[deprecated("Remove in v4.1. Use StringVal constructor directly.")]]
inline StringVal* string_to_val(string const &str)
{
return new StringVal(str.c_str());