You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arguments in m_positional_arguments of dyna will lost the m_used_name string_view value. It should be the local variable destruction make string_view failed. m_prefix_chars is the same.
The text was updated successfully, but these errors were encountered:
I initially agreed, but it looks like the m_used_name string_view is viewing one of the strings in Argument::m_names. Have you tried instrumenting your example (stdout or a debugger) to check the location of the string and view?
m_used_name is the same as m_argment_map's key.
I'm not familar with the implement of string_view, m_used_name address is xxxx2458 and m_names first address is xxxx2450
My suggestion is add a Argument copy construction to deal with it.
A quick code
Arguments in m_positional_arguments of dyna will lost the m_used_name string_view value. It should be the local variable destruction make string_view failed. m_prefix_chars is the same.
The text was updated successfully, but these errors were encountered: