[cfe-users] Checking if a class can be copy constructed

2019-12-14 Thread Xuanyi Zhou via cfe-users
Hello, I’ve been trying to do some code generation using clang (not libclang), and want to find out if a class can be copy constructed. I’ve tried testing if the copy constructor is deleted, but this does not work well with templates. For example, I have a class that contains a std::vector, whose c

[cfe-users] Checking if a class can be copy constructed

2019-12-14 Thread Luke Zhou via cfe-users
Hello again! It seems that the system failed to extract text from my previous post. This is my first time using a mailing list, so please excuse me for my mistakes. Here are the original contents of that post: Hello, > > I’ve been trying to do some code generation using clang (not libclang), > and