cpp-common/bt2c: make CStringView convertible from std::string
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 16 Jan 2024 18:58:25 +0000 (13:58 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 29 Jan 2024 16:38:19 +0000 (11:38 -0500)
commita0ae532f4ebf0a5d31f8378fd0584d420e9eca7e
tree0ff31074363b50cdd5f8378aa26e5c93d9440874
parente64addc78a171844b6b9ca0a21dd8644521cc7da
cpp-common/bt2c: make CStringView convertible from std::string

This will make it possible to have functions that accept CStringViews:

    void foo(CStringView);

and pass in std::strings seamlessly:

    foo(myStdStr);

Change-Id: I76dc55438c2cd87f77ddec421dff7f119e53eff5
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11688
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/cpp-common/bt2c/c-string-view.hpp
This page took 0.024215 seconds and 4 git commands to generate.