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

Explicitly include headers and libraries #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bbneil
Copy link

@bbneil bbneil commented Jul 5, 2017

Explicitly includes the standard library headers each file uses. Resolves #155

@@ -189,7 +190,7 @@ Seq<std::pair<std::size_t, std::size_t>> subranges(std::size_t start,
return seq::map(
seq::range<std::size_t>(start, end - rangeSize + 1),
[=](std::size_t rangeStart) {
return std::make_pair(rangeStart,
return std::pair<std::size_t, std::size_t>(rangeStart,
Copy link
Owner

Choose a reason for hiding this comment

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

Incorrect formatting.

@@ -15,7 +16,7 @@ FrequencyMap::FrequencyMap(const std::vector<std::size_t> &frequencies)
}

std::size_t FrequencyMap::lookup(std::size_t x) const {
return std::upper_bound(begin(m_table), end(m_table), x) - begin(m_table);
return std::upper_bound(std::begin(m_table), std::end(m_table), x) - std::begin(m_table);
Copy link
Owner

Choose a reason for hiding this comment

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

If not relying on ADL anyway, I'd prefer .begin() and .end().

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