Skip to content

Instantly share code, notes, and snippets.

@kachsheev
Created December 24, 2019 14:49
Show Gist options
  • Save kachsheev/09b57a81c7686fbdb3d7a608cf194df3 to your computer and use it in GitHub Desktop.
Save kachsheev/09b57a81c7686fbdb3d7a608cf194df3 to your computer and use it in GitHub Desktop.
Global boost::string_view
#include <iostream>
#include <boost/utility/string_view.hpp>
const boost::string_view globalView = "123";
int main()
{
std::cout << globalView << std::endl; // 123
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment