how can I create a type which behaves just like another type?

后端 未结 1 346
忘掉有多难
忘掉有多难 2021-01-17 01:51

This question is motivated by preferred mechanism to attach a type to a scalar?, but that got a bit off-track with units-of-measure ...

Let\'s say I want to create a

相关标签:
1条回答
  • 2021-01-17 02:12

    A library that you are looking for was recently featured on "Standard C++" site.

    See Tutorial: Emulating strong/opaque typedefs in C++

    0 讨论(0)
提交回复
热议问题