[LLVMdev] How to detect if a string is stored in an aggregate type.

Hripsime Matevosyan hripsime.m at gmail.com
Fri Feb 17 02:06:51 PST 2012

Hi all,

I have a question concerning to std::strings. Will you please advice me how
to detect if a constant string is stored in an array of std::strings or in
other objects with aggregate type. For example,

std::string a[2] = { "str1", "str2" };

Is there any idea better than detecting this by the signature of the string
class constructor?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120217/b2b80d4b/attachment.html>

More information about the llvm-dev mailing list