Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing FC Typenames (core issue #1217) #74

Merged
merged 4 commits into from
Aug 13, 2018
Merged

Conversation

jmjatlanta
Copy link

@jmjatlanta jmjatlanta commented Aug 11, 2018

This is the fc portion of bitshares/bitshares-core#1217

Prior get_typename was generating classes on many unnecessary classes. This modification correctly generates code for only the classes necessary.

@jmjatlanta jmjatlanta changed the title Missing FC Typenames Missing FC Typenames (core issue #1217) Aug 11, 2018
{
static const char* name()
{
return (std::string("fc::smart_ref<") + get_typename<T>::name() + std::string(">")).c_str();

Choose a reason for hiding this comment

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

Must assign to static string n first, then return that.

Copy link
Author

Choose a reason for hiding this comment

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

My oversight. Thank you for catching that.

@abitmore
Copy link
Member

abitmore commented Aug 11, 2018

Just a note: when porting code from sibling projects, prefer cherry-pick + fix conflicts to copy + paste + fix. (For this PR, perhaps unable to cherry-pick due to different directory structures?)

@jmjatlanta
Copy link
Author

@abitmore Did not attempt to cherry-pick. Will attempt that from now on. Thanks.

@jmjatlanta jmjatlanta merged commit 46ba4cc into master Aug 13, 2018
@jmjatlanta jmjatlanta deleted the jmj_issue_1271 branch August 13, 2018 14:17
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.

3 participants