On 2 August 2014 13:19, Magnus Fromreide <magfr(a)lysator.liu.se> wrote:
On Sat, Aug 02, 2014 at 12:54:09PM +0100, Sami Kerola wrote:
> The same error was fixed in multiple files to made clang++ work.
>
> error: variable length array of non-POD element type 'string' (aka
> 'basic_string<char>')
Stupid question: Why not a vector<string> ?
The clang++ did not like them, the error I got is
tuning/tuning.cpp:293:26: error: no viable conversion from
'std::vector<string>' to 'string *'
(aka 'basic_string<char> *')
report.add_table(tuned_data, &tune_table_css);
and I don't know how to make vectors work in that case. Of course part
of the problem is that my C++ skill is in beginner level zero, and I
might be doing something stupid. Assuming the later a hint how to make
that code better would be nice.
--
Sami Kerola
http://www.iki.fi/kerolasa/