If found the following code snippet on cppreference:
inline constexpr std::size_t dynamic_extent = std::numeric_limits<std::size_t>::max();
I thought constepxr implies inline.
- Is there any value in marking a variable as constexpr and inline?
I found different sources giving different answers. Some say yes. Others say no. I'm confused.
Does constexpr imply inline? does not clearly answers my question. Because the related answer saying no has a comment saying yes. I found other sources saying yes, too. But cppreference still uses both.