Skip to content

Conversation

@jlblancoc
Copy link
Contributor

Follow up of #258

Feel free of changing the name "standard_type" to anything else...

Copy link
Member

@lyskov lyskov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, - thank you for taking care of this @jlblancoc ! Let me think for a bit if option name is best it could be. Otherwise this is good to be merged.

In light of your comment #258 (comment) - it might be a good idea to also add test case for, please see more comments on this below. Adding test is optional, - if you do not have bandwidth for this then i will add this later. Thanks,

Comment on lines +473 to +486
"std::size_t", "std::ptrdiff_t",

// <stddef.h>
"size_t", "ptrdiff_t",

// <cstdint> (most common ones only)
"std::int8_t", "std::int16_t", "std::int32_t", "std::int64_t",
"std::uint8_t", "std::uint16_t", "std::uint32_t", "std::uint64_t",
"std::intmax_t", "std::uintmax_t", "std::intptr_t", "std::uintptr_t",

// <stdint.h> (most common ones only)
"int8_t", "int16_t", "int32_t", "int64_t",
"uint8_t", "uint16_t", "uint32_t", "uint64_t",
"intmax_t", "uintmax_t", "intptr_t", "uintptr_t",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional, if you feel up to this: would be great if small test using some (or maybe all?) of this types added into https://github.com/RosettaCommons/binder/tree/master/test . 🤔 I think something like function taking very long argument list containing all these types will do .

Plus class member function with similar list of arguments as well as public data members. That way we should cover all instances where type conversion is needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll try it; if days pass by and have no feedback, feel free of merging and doing it yourself or stacking in the TO-DO ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants