From 2eb54d53bcd0a2f86eefb77db9061a0dfcc73d62 Mon Sep 17 00:00:00 2001 From: Jan Kuhlmann <33833587+M2-TE@users.noreply.github.com> Date: Wed, 13 Nov 2024 15:51:34 +0100 Subject: [PATCH] always default-construct options --- graphs.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphs.hpp b/graphs.hpp index 9ccc48c..7619f82 100644 --- a/graphs.hpp +++ b/graphs.hpp @@ -774,7 +774,7 @@ namespace graphs } template - int histogram(size_t height, size_t width, long double xmin, long double xmax, long double ymin, long double ymax, const T &aarray, const options &aoptions = {.type = type_histogram}) + int histogram(size_t height, size_t width, long double xmin, long double xmax, long double ymin, long double ymax, const T &aarray, const options &aoptions = {}) { if (!graphs::size(aarray)) return 1; @@ -879,7 +879,7 @@ namespace graphs } template - int histogram(size_t height, size_t width, long double xmin, long double xmax, long double ymin, long double ymax, const size_t rows, T *aarray, const options &aoptions = {.type = type_histogram}) + int histogram(size_t height, size_t width, long double xmin, long double xmax, long double ymin, long double ymax, const size_t rows, T *aarray, const options &aoptions = {}) { if (rows == 0) return 1;