boostorg / locale

Boost.Locale
Boost Software License 1.0
31 stars 70 forks source link

resolving argument usage check in examples/performance #188

Closed jeffreyworley closed 1 year ago

jeffreyworley commented 1 year ago

The check for the correct number of arguments for perf_collate.cpp, perf_convert.cpp, and perf_format.cpp did not match the indices of argv that are accessed. This resulted in a crash if the previous check was satisfied on access to argv[2]. This change allows for backend and locale options to be provided as intended.