@@ -169,7 +169,7 @@ namespace mgis::behaviour {
169169 * \param[in] h: modelling hypothesis
170170 * \return the behaviour description
171171 */
172- MGIS_EXPORT std::optional<Behaviour> load (Context &,
172+ MGIS_EXPORT [[nodiscard]] std::optional<Behaviour> load (Context &,
173173 const std::string &,
174174 const std::string &,
175175 const Hypothesis) noexcept ;
@@ -190,7 +190,7 @@ namespace mgis::behaviour {
190190 * \note: use of `std::string` rather than `mgis::string_view` is
191191 * meaningful here
192192 */
193- MGIS_EXPORT std::optional<Behaviour> load (
193+ MGIS_EXPORT [[nodiscard]] std::optional<Behaviour> load (
194194 Context &,
195195 const FiniteStrainBehaviourOptions &,
196196 const std::string &,
@@ -243,7 +243,7 @@ namespace mgis::behaviour {
243243 * \param[in] opts: options to select the behaviour
244244 * \return the behaviour description
245245 */
246- MGIS_EXPORT std::optional<Behaviour> loadFromDatabase (
246+ MGIS_EXPORT [[nodiscard]] std::optional<Behaviour> loadFromDatabase (
247247 Context &, const LoadFromDatabaseOptions &) noexcept ;
248248 /* !
249249 * \brief load a finite strain behaviour from the database
@@ -253,7 +253,7 @@ namespace mgis::behaviour {
253253 * \param[in] opts: options to select the behaviour
254254 * \return the behaviour description
255255 */
256- MGIS_EXPORT std::optional<Behaviour> loadFromDatabase (
256+ MGIS_EXPORT [[nodiscard]] std::optional<Behaviour> loadFromDatabase (
257257 Context &,
258258 const FiniteStrainBehaviourOptions &,
259259 const LoadFromDatabaseOptions &) noexcept ;
0 commit comments