Page MenuHomePhabricator

Document assumptions about compiler, add sizeof(size_t) assumptions
ClosedPublic

Authored by PiRK on Oct 2 2020, 12:12.

Details

Reviewers
deadalnix
Fabien
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rABC418fdfff8579: Document assumptions about compiler, add sizeof(size_t) assumptions
Summary

Backport of Core PR15522

Test Plan

ninja

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Oct 2 2020, 12:12
PiRK requested review of this revision.Oct 2 2020, 12:12

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

deadalnix requested changes to this revision.Oct 2 2020, 14:19
deadalnix added subscribers: Fabien, deadalnix.
deadalnix added inline comments.
src/compat/assumptions.h
32 ↗(On Diff #24204)

Aren't we assuming C++14 already?

@Fabien ?

This revision now requires changes to proceed.Oct 2 2020, 14:19
src/compat/assumptions.h
32 ↗(On Diff #24204)

Yes

assume C++14 instead of C++11

src/compat/assumptions.h
25 ↗(On Diff #24326)

Spurious smiley ?
If you want c++14 examples, we use std::make_unique() through the codebase

PiRK marked an inline comment as done.Oct 7 2020, 08:37

add example, fix comment formatting, remove smiley from comment

This revision is now accepted and ready to land.Oct 7 2020, 18:39