File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,13 @@ struct multi_weight_value : public boost::span<T> {
31
31
return !operator ==(values);
32
32
}
33
33
34
- // template <class S>
35
- // void operator+=(const S values) {
36
- // void operator+=(const std::vector<T> values) {
37
- // if(values.size() != this->size())
38
- // throw std::runtime_error("size does not match");
39
- // auto it = this->begin();
40
- // for(const T& x : values)
41
- // *it++ += x;
42
- // }
43
- // void operator+=(const boost::span<T> values) {
44
- template <class S >
45
- void operator +=(const S values) {
34
+ void operator +=(const std::vector<T> values) {
35
+ operator +=(boost::span<T>(values));
36
+ }
37
+
38
+ void operator +=(const boost::span<T> values) {
39
+ // template <class S>
40
+ // void operator+=(const S values) {
46
41
if (values.size () != this ->size ())
47
42
throw std::runtime_error (" size does not match" );
48
43
auto it = this ->begin ();
You can’t perform that action at this time.
0 commit comments