Created
December 24, 2019 14:49
-
-
Save kachsheev/09b57a81c7686fbdb3d7a608cf194df3 to your computer and use it in GitHub Desktop.
Global boost::string_view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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