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

DM-13787: afw::table::SchemaMapper::addMapping calls wrong overload with string literal #329

Merged
merged 2 commits into from May 29, 2018

Conversation

pschella
Copy link

Prior to this fix calling addMapping with a string literal as the
second argument caused the wrong (bool) overload to be called.
Now a compile-time error is generated instead.

Prior to this fix calling addMapping with a string literal as the
second argument caused the wrong (bool) overload to be called.
Now a compile-time error is generated instead.
@pschella pschella changed the title DM-13787: Force std::string argument to SchemaMapper::addMapping DM-13787: afw::table::SchemaMapper::addMapping calls wrong overload with string literal Mar 13, 2018
Copy link
Contributor

@r-owen r-owen 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. It's a pity that the C++ compiler picked the wrong overload with string literals, but this seems a fine way out of the problem.

@timj
Copy link
Member

timj commented Apr 4, 2018

Is there a reason this code hasn't been merged?

@pschella
Copy link
Author

Yes, I forgot about it.

@pschella pschella merged commit a12a2b0 into master May 29, 2018
@ktlim ktlim deleted the tickets/DM-13787 branch August 25, 2018 06:44
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.

None yet

3 participants