Skip to content

Commit 69c3234

Browse files
committed
Changed max interval to 1 second for docker compose adapter
Fixed compile issues with ubuntu 22.04 gcc-11 support for constexpr and string.
1 parent 47bd14c commit 69c3234

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/mtconnect/utilities.hpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ namespace mtconnect {
198198
/// @brief Convert text to upper case
199199
/// @param[in,out] text text
200200
/// @return upper-case of text as string
201-
constexpr std::string &toUpperCase(std::string &text)
201+
inline std::string &toUpperCase(std::string &text)
202202
{
203203
std::transform(text.begin(), text.end(), text.begin(),
204204
[](unsigned char c) { return std::toupper(c); });
@@ -209,7 +209,7 @@ namespace mtconnect {
209209
/// @brief Simple check if a number as a string is negative
210210
/// @param s the numbeer
211211
/// @return `true` if positive
212-
constexpr bool isNonNegativeInteger(const std::string &s)
212+
inline bool isNonNegativeInteger(const std::string &s)
213213
{
214214
for (const char c : s)
215215
{
@@ -223,7 +223,7 @@ namespace mtconnect {
223223
/// @brief Checks if a string is a valid integer
224224
/// @param s the string
225225
/// @return `true` if is `[+-]\d+`
226-
constexpr bool isInteger(const std::string &s)
226+
inline bool isInteger(const std::string &s)
227227
{
228228
auto iter = s.cbegin();
229229
if (*iter == '-' || *iter == '+')

0 commit comments

Comments
 (0)