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

Support vectors of non-default-constructible values in c++11 mode #324

Merged

Conversation

jonitis
Copy link
Contributor

@jonitis jonitis commented Jul 27, 2015

Recently was added support for non-default-constructible classes using as.
But there should be the similar functionality for containers of such values.

I've just created initial version for vector, but it is not final patch I am expecting to be merged into msgpack. There must be support for other container types (e.g. map) and proper std::enable_if checks.
I do not feel comfortable to create full patch, but expect that Takatoshi Kondo or other maintainers will create polished patch. This is just suggested idea.

@redboltz
Copy link
Contributor

Thank you for sending the PR.
Exactly containers should support 'as' too. I will implement them. But I need time to do it ;)

@redboltz redboltz merged commit 87f0da1 into msgpack:master Jul 31, 2015
@redboltz
Copy link
Contributor

Implemented container's support except boost. It includes SFINAE checking.
I will do boost container support ASAP.

@jonitis jonitis deleted the vector_of_non_default_constructible_values_2 branch August 11, 2015 06:32
@jonitis jonitis restored the vector_of_non_default_constructible_values_2 branch August 11, 2015 06:49
@jonitis jonitis deleted the vector_of_non_default_constructible_values_2 branch August 11, 2015 06:51
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