June 14, 2015
On 6/13/15 6:45 AM, kerdemdemir wrote:
> I have two strings(stringB,stringC) which I need to repeat(bCount times,
> cCountTimes) and then chain.
>
> auto charAppender = appender!(dchar[]);
> auto totalStr = stringB.repeat(bCount).chain(stringC.repeat(cCount));
>
> This compiles and works ok,
> But when I try to append new string to charAppender :
>
> charAppender.put(totalStr);
> Error: template std.array.join cannot deduce function from argument types
>
> I tried:
> charAppender.put(totalStr.array());
> charAppender.data.chain(totalStr);
> charAppender.data.chain(totalStr.array()); etc...
>
> I always get compile errors.
> Do you have any idea or fix about that?

Have you tried:

put(charAppender, totalStr);

It is not recommended to use charAppender.put directly, unless you know it will work. This is a frequent cause of problems (using .put on an output range directly).

-Steve
1 2
Next ›   Last »