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

Refined base class pack/unpack support. #277

Merged
merged 1 commit into from May 8, 2015

Conversation

redboltz
Copy link
Contributor

@redboltz redboltz commented May 1, 2015

Not only C++11 but also C++03 supported.

Not only C++11 but also C++03 supported.
@redboltz
Copy link
Contributor Author

redboltz commented May 1, 2015

The concept of this fix is replace

static_cast<base *>(const_cast<T *>(this))

with

const_cast<base *>(static_cast<base const *>(this))

Those are the same effect, but the latter doesn't need to know type T.

test codes are just moved.

nobu-k added a commit that referenced this pull request May 8, 2015
Refined base class pack/unpack support.
@nobu-k nobu-k merged commit bf859f2 into msgpack:master May 8, 2015
@nobu-k
Copy link
Member

nobu-k commented May 8, 2015

LGTM!

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

2 participants