Roman Koshelev
Roman Koshelev
`const unsigned m = mp + (mp < 10 ? 3 : -9); // [1, 12]` This line is UB since -9 is converted to unsigned? Or am I wrong?
Found your algorithms days_from_civil and civil_from_days (http://howardhinnant.github.io/date_algorithms.html). l saw their use in the hffix (https://github.com/jamesdbrock/hffix) and Microsoft STL (https://github.com/microsoft/STL) libraries. Based on the description on the site, it seems that...
1) Strengthen the checks (for example, check that the separating symbol is '=' 2) We will detect invalid messages as soon as possible
According to the comment, the function must return a valid message (although not necessarily complete). This is logical, but not so now. Also, now, in the absence of a valid...
The line "8=FIX" will not necessarily be the beginning of a new message. For example, you will get "58=FIX arbitrary string". Search correctly for "\18=FIX"
Необходимо дабавить значение std::errc:success. Использовать enum class для кода возврата и считать что успех это дефолтно сконструированный enum который содержит значение не перечисленное в обьявлении помоему шизофрения. (Да и выглядит...
В стандарте есть функции для работы с кучей. is_heap, make_heap, push_heap, pop_heap и другие. Не достает std::shift_down которая будет просеивать модифицированный максимальный/минимальный элемент. Например библиотеки событий используют кучу для хранения...
В С++20 наконец-то стало возможным конвертировать время между часами, но не появилось специализации для конвентирования системных часов в монотонные и обратно. На сколько я помню, для них гарантируется что они...