Closed dangdkhanh closed 1 year ago
Please provide a minimal, reproducible example.
Hi brevzin, This class type is in the 3rd library,myclass similar variant type(i.e. can be int, double , string or an array) defined by property 'class_type'
In my code the values of myclass are string, andalso var is string;
Example : vector v("a","b","c") and var("-")
desired result: vector rng("a","-","b","-","c") but intersperse return
rng("a",{"-"},"b",{"-"},"c")
I mean intersperse values going from string to array string.
Currently I need to use transform to get this first element.
Sorry, I really don't understand what that means - or what's the difference between the desired result and what's being returned, or what the problem is. Without a clear, reproducible example of the issue - a complete program which produces one result, where you expect a different result - I can't help you.
Hi brevzin, Thanks you. from this code i found out the cause came from the library i was using.
line81: constexpr explicit cursor_adaptor(range_value_t<Rng> const & val)
: val_{val}
problem has been solved.
Is this unusual behavior? I use code like this:
However after run, properties of var in rng have been changed.
Thanks you.