Andrey Semashev

Results 79 issues of Andrey Semashev

Suppose we have a common utility class that performs a check on the passed value: ``` template< typename T > class checker { T& m_expected; public: void operator() (T const&...

`BOOST_TEST_EQ` that involve C-style strings do not output string contents. For example, `BOOST_TEST_EQ(*++itr, "foo");` shows this on failure: ``` libs\filesystem\test\path_test.cpp(341): test '*++itr == "foo"' ('"c:"' == '00007FF79AE87414') failed in function...

Consider this test code: ``` #include #include #include typedef boost::container::flat_map< std::uint8_t, std::string > my_map; void add_element(std::string& str, char elem) { str.push_back(elem); } int main() { my_map m; add_element(m[static_cast< std::uint8_t >(96u)],...

Consider a case when we have a non-default-constructibe type, which we want to store in a vector (any flavor of the supported by Boost.Container). In order to allocate N elements...

When the time type is `boost::posix_time::ptime`, Boost.DateTime output facets don't produce any output for "%Z", "%z", "%Q" and "%q" flags. Here is an example: ``` #include #include #include #include static...

Please, provide a way to create a time zone object (presumably, `posix_time_zone`) that corresponds to whatever time zone is set on the current system. Essentially, I need a way to...

As documented, [`shm_open`](https://pubs.opengroup.org/onlinepubs/007904875/functions/shm_open.html) may return `EINTR` if interrupted by a signal. This error code is not specially handled in `shared_memory_object::priv_open_or_create` and will result in an exception being thrown. It would...

My use case is as follows. I need to synchronize multiple processes or threads initializing a shared memory region. No select process can be considered the "master", so it is...

`path::compare` calls `lex_compare_vN` internally, which operates on `path::iterator`s and therefore is not `noexcept`. C++ standard says `path::compare` should be `noexcept`.