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

2
NEWS
View file

@ -115,6 +115,8 @@ Deprecated Functionality
- ``binpac::bytestring_to_val()`` is deprecated, use ``binpac::to_stringval()``.
- ``binpac::string_to_val()`` is deprecated, use ``StringVal`` constructor.
Zeek 3.1.0
==========

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());