Moved byte_string_view typedef, defined it with std::string_view
This commit is contained in:
parent
a1fdb34ad8
commit
c081233d9d
2 changed files with 6 additions and 1 deletions
|
@ -16,8 +16,14 @@
|
|||
|
||||
#include "serialization/string_view.hpp"
|
||||
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
namespace utils
|
||||
{
|
||||
using byte_string_view = std::basic_string_view<uint8_t>;
|
||||
}
|
||||
|
||||
// Official Base64 encoding (RFC4648)
|
||||
namespace base64 {
|
||||
std::vector<uint8_t> decode(utils::string_view encoded);
|
||||
|
|
|
@ -26,5 +26,4 @@ that class. */
|
|||
namespace utils
|
||||
{
|
||||
using string_view = boost::string_view;
|
||||
using byte_string_view = boost::basic_string_view<uint8_t, std::char_traits<uint8_t>>;
|
||||
} // namespace utils
|
||||
|
|
Loading…
Add table
Reference in a new issue