Skip to content

Commit c56cac2

Browse files
committed
boost::string_view::contains not available in older versions
1 parent 27c825a commit c56cac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ql/time/asx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace QuantLib {
6666

6767
// 1st character needs to represent the correct month
6868
const boost::string_view validMonthCodes = mainCycle ? "HMUZ" : All_MONTH_CODES;
69-
return validMonthCodes.contains(std::toupper(in[0]));
69+
return validMonthCodes.find(std::toupper(in[0])) != boost::string_view::npos;
7070
}
7171

7272
std::string ASX::code(const Date& date) {

0 commit comments

Comments
 (0)