Skip to content

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.

2 participants