| Home | Libraries | People | FAQ | More

#### runtime

Creates a `constant_string_view` from a runtime value.

##### Synopsis

Defined in header `<boost/mysql/constant_string_view.hpp>`

    constexpr constant_string_view
    runtime(
        string_view value) noexcept;

##### Description

You can use this function to bypass the `consteval` check performed by `constant_string_view` constructor.

Don't use this function unless you know what you are doing. `consteval` checks exist for the sake of security. Make sure to only pass trusted values to the relevant API.

##### Exception safety

No-throw guarantee.

##### Object lifetimes

The returned value has the same lifetime semantics as the passed view.

Convenience header `<boost/mysql.hpp>`