Avoiding the func(char *) api on embedded
问题 Note: I heavily changed my question to be more specific, but I will keep the old question at end of the post, in case it is useful to anyone. New Question I am developing an embedded application which uses the following types to represent strings : string literals(null terminated by default) std::array<char,size> (not null terminated) std::string_view I would like to have a function that accepts all of them in a uniform way. The only problem is that if the input is a string literal I will