Skip to content

Commit db9a67e

Browse files
committed
[FIX] enums and find
1 parent 3900d29 commit db9a67e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/sharg/validators.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ class file_validator_base
387387
file_path.erase(0, 1);
388388

389389
// Store a string_view containing all extensions for a better error message.
390-
std::string const all_extensions{file_path.substr(file_path.find(".") + 1)};
390+
std::string const all_extensions{file_path.substr(file_path.find('.') + 1)};
391391

392392
// Compares the extensions in lower case.
393393
auto case_insensitive_ends_with = [&](std::string const & ext)
@@ -601,7 +601,7 @@ class input_file_validator : public file_validator_base
601601
* \details
602602
* \experimentalapi{Experimental since version 1.0.}
603603
*/
604-
enum class output_file_open_options
604+
enum class output_file_open_options : uint8_t
605605
{
606606
//!\brief Allow to overwrite the output file
607607
open_or_create,

0 commit comments

Comments
 (0)