flex_string issues

Developers
Matthias
2009-10-13
2013-04-08
  • Matthias

    Matthias - 2009-10-13

    Hi,

    I just start using Loki so please apologize if I miss something obvious…

    I tried flex_string with SmallStringOpt, CowStringOpt and VectorStringStorage policies.

    There are two issues:

    1)
    using wchar_t the compiler does not resolve to using operator<< as defined by Loki, but instead tries to find a matching operator in the standard library, which of course fails.
    Since it is working fine when using char, I wonder what I might do wrong?

    2)
    VectorStringStorage seems to be missing a constructor that is provided by other storage policies and that is expected by
    CowStringOpt, i.e. something like

            VectorStringStorage(const VectorStringStorage& s,
                flex_string_details::Shallow)
                : base(s)
            {
            }

    Is this a bug or did I miss the point?

    Any clarification appreciated.

    Thanks,
    Matthias

    (Loki 0.1.7 with MS Visual Studio 2008)

     
  • Matthias

    Matthias - 2009-10-19

    …I just discovered I should have posted to the "Help" forum. Since I do not see a possibility to move the post I will repost the question there.

    Matthias

     

Log in to post a comment.