waifod / quant_finance_models

Project containing the implementations of quantitative finance models
MIT License
5 stars 1 forks source link

Add default case to AssetType ToString #74

Closed waifod closed 11 months ago

waifod commented 11 months ago

When building we are receiving the following warning message about a switch statement without a default case.

/home/runner/work/quant_finance_models/quant_finance_models/src/qfm/asset/asset_type.cpp: In function ‘std::string qfm::asset::ToString(const qfm::asset::AssetType&)’:
/home/runner/work/quant_finance_models/quant_finance_models/src/qfm/asset/asset_type.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type]
   36 | }
      | ^

This change provides it.