Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

[1.6] Mark allocation_flag constructor as explicit.#331

Merged
szyrom merged 1 commit intopmem:stable-1.6from
igchor:alloc_1.6
Jun 24, 2019
Merged

[1.6] Mark allocation_flag constructor as explicit.#331
szyrom merged 1 commit intopmem:stable-1.6from
igchor:alloc_1.6

Conversation

@igchor
Copy link
Copy Markdown
Contributor

@igchor igchor commented Jun 13, 2019

Having implicit constructor caused unexpected beahviour with
make_persistent_array. For make_persistent version designed to
work with sized arrays calling make_persistent<int[100]>(90) didn't
failed as expected. Instead, '90' was implicitly converted to
allocation_flag.


This change is Reviewable

Having implicit constructor caused unexpected beahviour with
make_persistent_array. For make_persistent version designed to
work with sized arrays calling make_persistent<int[100]>(90) didn't
failed as expected. Instead, '90' was implicitly converted to
allocation_flag.
@igchor igchor changed the title Mark allocation_flag constructor as explicit. [1.6] Mark allocation_flag constructor as explicit. Jun 13, 2019
@pmem-bot
Copy link
Copy Markdown
Contributor

@szyrom and @lukaszstolarczuk please review this pull request

Copy link
Copy Markdown
Member

@lukaszstolarczuk lukaszstolarczuk left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Copy Markdown

@szyrom szyrom left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@szyrom szyrom merged commit bc4128d into pmem:stable-1.6 Jun 24, 2019
@igchor igchor deleted the alloc_1.6 branch September 20, 2019 10:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants