Replies: 1 comment 3 replies
-
That would tie all users to a particular representation, which would be a compatibility issue for anyone that is currently using the library with Providing it as an opt-in method that people can put in their own code base, as it is now, is IMHO the most compatible route. It could maybe be provided as a more complete example. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I came across this issue #2159 as I was trying to do the same for
std::chrono::duration
. I searched around (though admittedly not much) on whether or not it's been discussed already to directly supportstd::chrono
types right out of the box. I figured it would be simple enough (maybe naively) to add support for this in the library, but wanted to get educated a bit more on why this may or may not be a good idea.My initial thought is that I wouldn't want to force everyone to transitively include the
chrono
header, but maybe that is just a matter of making it opt-in?Beta Was this translation helpful? Give feedback.
All reactions