mirror of
https://github.com/tdulcet/Table-and-Graph-Libs.git
synced 2025-05-07 07:31:20 +08:00
always default-construct options
This commit is contained in:
parent
f5325ada20
commit
2eb54d53bc
@ -774,7 +774,7 @@ namespace graphs
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
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))
|
if (!graphs::size(aarray))
|
||||||
return 1;
|
return 1;
|
||||||
@ -879,7 +879,7 @@ namespace graphs
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
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)
|
if (rows == 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user