Skip to content

Conversation

@klemens-morgenstern
Copy link
Collaborator

No description provided.

VA7ODR and others added 30 commits August 28, 2020 11:13
…_fix

Fixed file_descriptor move assignment operator returns a reference to this.
explicit cast to int to silence this: `error: non-constant-expression cannot be narrowed from type 'unsigned long' to 'int' in initializer list [-Wc++11-narrowing]`
@klemens-morgenstern klemens-morgenstern merged commit 610b337 into develop May 19, 2022
@klemens-morgenstern klemens-morgenstern deleted the drone branch May 19, 2022 09:00
cmake_minimum_required(VERSION 3.5...3.16)

project(boost_process VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
find_package(Boost REQUIRED iostreams program_options filesystem system thread)
Copy link
Contributor

Choose a reason for hiding this comment

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

This breaks the superproject build on which you basically rely by using BOOST_SUPERPROJECT_VERSION
That in turn also breaks dependent libraries

Copy link
Member

Choose a reason for hiding this comment

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

Confirmed. The Boost CMake build is broken now, as a result of this change. Please fix.

while (*p != nullptr)
{
if (std::equal(st1.begin(), st1.end(), *p))
const int len = std::char_traits<Char>::length(*p);
Copy link

Choose a reason for hiding this comment

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

Can we use iterator::difference_type here something like const auto len = static_cast<iterator::difference_type>(std::char_traits<Char>::length(*p))?
This causes an warning with Visual C++:

https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/44489657/job/xh0s898nasxat5fn#L1515

C:\Miniconda37-x64\envs\arrow\Library\include\boost/process/environment.hpp(266): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
C:\Miniconda37-x64\envs\arrow\Library\include\boost/process/environment.hpp(266): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data

while (*p != nullptr)
{
if (std::equal(st1.begin(), st1.end(), *p))
const int len = std::char_traits<Char>::length(*p);
Copy link

Choose a reason for hiding this comment

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

Ditto.

while (*p != nullptr)
{
if (std::equal(st1.begin(), st1.end(), *p))
const int len = std::char_traits<Char>::length(*p);
Copy link

Choose a reason for hiding this comment

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

Ditto.

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.

9 participants