search for: type_traits

Displaying 20 results from an estimated 91 matches for "type_traits".

2014 Aug 01
2
[LLVMdev] Clang Integration with MSVS 2013
...0\VC\include\xmemory0:9: 1> In file included from C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xutility:8: 1> In file included from C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\utility:8: 1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\type_traits(620,32): error : '_Ty' does not refer to a value 1> : _Cat_base<_IS_CONSTRUCTIBLE(_Ty, _Args...)> 1> ^ 1> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\type_traits(617,15) : note: declared here...
2012 Sep 27
4
[LLVMdev] Clang bug?
...in 'std::__1::map<int, Templ8<int>::Member *, std::__1::less<int>, std::__1::allocator<std::__1::pair<const int, Templ8<int>::Member *>>>' typename map<K,Member*>::iterator it; ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/bin/../lib/c++/v1/type_traits:1184:57: note: in instantiation of member class 'Templ8<int>::Member' requested here decltype((_VSTD::declval<_Tp>() = _VSTD::declval<_Arg>(), true_type())) ^ /usr/bin/../lib/c++/v1/type_traits:1186:1: note: while sub...
2012 Jul 09
2
[LLVMdev] Unable to do even basic Clang tutorial
...do the first tutorial. I installed LLVM 3.1 and Clang 3.1 and when I do: ~/loarabia-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file included from tutorial1.cpp:5: In file included from ./llvm/Support/raw_ostream.h:17: ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error: 'llvm/Support/type_traits.h' file not found include "llvm/Support/type_traits.h" ^ 1 error generated. Do you know what I am doing wrong? I'm not sure what is the best way to handle this header file problem. I'm running Ubuntu 12.04. Thank you. -------------- next part -------------- An HTML attachm...
2012 Sep 29
2
[LLVMdev] Clang bug?
...ion of 'A<B<int>::C *>', but it has not > been instantiated yet > > Hi Richard, > > Is your position that tot clang/libc++ is in error for not producing a > diagnostic? > No, my position is the opposite. Trunk clang + libc++ still reject this: #include <type_traits> template<typename T> struct S { static_assert(sizeof(T) == 1, ""); }; bool b = std::is_assignable<S<int>*&, S<int>*>::value; ... because is_assignable triggers the instantiation of S<int>. I believe Clang is behaving correctly here. I don't know...
2014 Dec 17
5
[LLVMdev] How to figure out what #includes are needed?
...------------------------------------------------------- In file included from LLVMDIBuilder.cpp:16: In file included from /usr/local/include/llvm/Support/CBindingWrapping.h:17: In file included from /usr/local/include/llvm/Support/Casting.h:18: In file included from /usr/local/include/llvm/Support/type_traits.h:22: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/utility:70: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_pair.h:59: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/move.h:185:5: error: confl...
2012 Sep 28
0
[LLVMdev] Clang bug?
...t;int, Templ8<int>::Member *, std::__1::less<int>, > std::__1::allocator<std::__1::pair<const int, Templ8<int>::Member > *>>>' > typename map<K,Member*>::iterator it; > ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ > /usr/bin/../lib/c++/v1/type_traits:1184:57: note: in instantiation of > member class 'Templ8<int>::Member' requested here > decltype((_VSTD::declval<_Tp>() = _VSTD::declval<_Arg>(), true_type())) > ^ > /usr/bin/../lib/c++/v1/type_traits:1186...
2019 Feb 11
2
[cfe-dev] [8.0.0 Release] rc2 has been tagged
...nux-gnu/usr/include/c++/v1/algorithm:640: > In file included from > (...)/sysroot-x86_64-linux-gnu/usr/include/c++/v1/initializer_list:47: > In file included from > (...)/sysroot-x86_64-linux-gnu/usr/include/c++/v1/cstddef:110: > > (...)/sysroot-x86_64-linux-gnu/usr/include/c++/v1/type_traits:740:56: > error: _Float16 is not supported on this target > template <> struct __libcpp_is_floating_point<_Float16> : > public true_type {}; > This is quite odd, because libc++ trunk has no mentions of `_Float16`, and I see none here: https://llvm.org/svn/llvm-...
2012 Jul 09
3
[LLVMdev] Unable to do even basic Clang tutorial
...; 3.1 and when I do: >> >> ~/loarabia-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file >> included from tutorial1.cpp:5: In file included from >> ./llvm/Support/raw_ostream.h:17: >> ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error: >> 'llvm/Support/type_traits.h' file not found >> >> include "llvm/Support/type_traits.h" >> ^ >> 1 error generated. >> >> Do you know what I am doing wrong? I'm not sure what is the best way >> to handle this header file problem. >> >> I'm running Ubu...
2012 Sep 28
4
[LLVMdev] Clang bug?
...:Member *, std::__1::less<int>, > > std::__1::allocator<std::__1::pair<const int, Templ8<int>::Member > > *>>>' > > typename map<K,Member*>::iterator it; > > ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ > > /usr/bin/../lib/c++/v1/type_traits:1184:57: note: in instantiation of > > member class 'Templ8<int>::Member' requested here > > decltype((_VSTD::declval<_Tp>() = _VSTD::declval<_Arg>(), true_type())) > > ^ > > /usr/bin/../lib/c++...
2012 Sep 29
0
[LLVMdev] Clang bug?
...'A<B<int>::C *>', but it has not been instantiated yet > > Hi Richard, > > Is your position that tot clang/libc++ is in error for not producing a diagnostic? > > No, my position is the opposite. Trunk clang + libc++ still reject this: > > #include <type_traits> > template<typename T> struct S { static_assert(sizeof(T) == 1, ""); }; > bool b = std::is_assignable<S<int>*&, S<int>*>::value; > > ... because is_assignable triggers the instantiation of S<int>. > > I believe Clang is behaving co...
2012 Jul 09
4
[LLVMdev] Unable to do even basic Clang tutorial
...> >> ~/loarabia-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file > >> included from tutorial1.cpp:5: In file included from > >> ./llvm/Support/raw_ostream.h:17: > >> ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error: > >> 'llvm/Support/type_traits.h' file not found > >> > >> include "llvm/Support/type_traits.h" > >> ^ > >> 1 error generated. > >> > >> Do you know what I am doing wrong? I'm not sure what is the best way > >> to handle this header file prob...
2012 Jul 09
3
[LLVMdev] Unable to do even basic Clang tutorial
...both of them and > neither worked: > > $ clang++ -I llvm/include tutorial1.cpp > In file included from tutorial1.cpp:5: > In file included from llvm/include/llvm/Support/raw_ostream.h:17: > In file included from llvm/include/llvm/ADT/StringRef.h:13: > llvm/include/llvm/Support/type_traits.h:20:10: fatal error: > 'llvm/Support/DataTypes.h' file not found > #include "llvm/Support/DataTypes.h" > ^ > 1 error generated. > > $ clang++ -I llvm/tools/clang/include/ tutorial1.cpp > tutorial1.cpp:5:10: fatal error: 'llvm/Support/raw_ostream...
2012 Sep 29
0
[LLVMdev] Clang bug?
...:less<int>, >> > std::__1::allocator<std::__1::pair<const int, Templ8<int>::Member >> > *>>>' >> > typename map<K,Member*>::iterator it; >> > ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ >> > /usr/bin/../lib/c++/v1/type_traits:1184:57: note: in instantiation of >> > member class 'Templ8<int>::Member' requested here >> > decltype((_VSTD::declval<_Tp>() = _VSTD::declval<_Arg>(), true_type())) >> > ^ >> > /us...
2012 Jul 09
1
[LLVMdev] Unable to do even basic Clang tutorial
...do the first tutorial. I installed LLVM 3.1 and Clang 3.1 and when I do: ~/loarabia-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file included from tutorial1.cpp:5: In file included from ./llvm/Support/raw_ostream.h:17: ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error: 'llvm/Support/type_traits.h' file not found include "llvm/Support/type_traits.h" ^ 1 error generated. Do you know what I am doing wrong? I'm not sure what is the best way to handle this header file problem. I'm running Ubuntu 12.04. Thank you. -------------- next part -------------- An HTML attachm...
2012 Jul 09
0
[LLVMdev] Unable to do even basic Clang tutorial
...rst tutorial. I installed LLVM 3.1 and Clang 3.1 and when I do: > > ~/loarabia-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file included from tutorial1.cpp:5: In file included from ./llvm/Support/raw_ostream.h:17: ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error: 'llvm/Support/type_traits.h' file not found > > include "llvm/Support/type_traits.h" > ^ > 1 error generated. > > Do you know what I am doing wrong? I'm not sure what is the best way to handle this header file problem. > > I'm running Ubuntu 12.04. > > Thank you. >...
2012 Jul 09
0
[LLVMdev] Unable to do even basic Clang tutorial
...ate include directories.  I tried both of them and neither worked: $ clang++ -I llvm/include tutorial1.cpp  In file included from tutorial1.cpp:5: In file included from llvm/include/llvm/Support/raw_ostream.h:17: In file included from llvm/include/llvm/ADT/StringRef.h:13: llvm/include/llvm/Support/type_traits.h:20:10: fatal error: 'llvm/Support/DataTypes.h' file not found #include "llvm/Support/DataTypes.h"          ^ 1 error generated. $ clang++ -I llvm/tools/clang/include/ tutorial1.cpp  tutorial1.cpp:5:10: fatal error: 'llvm/Support/raw_ostream.h' file not found #include &q...
2012 Jul 09
0
[LLVMdev] Unable to do even basic Clang tutorial
...; 3.1 and when I do: >> >> ~/loarabia-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file >> included from tutorial1.cpp:5: In file included from >> ./llvm/Support/raw_ostream.h:17: >> ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error: >> 'llvm/Support/type_traits.h' file not found >> >> include "llvm/Support/type_traits.h" >> ^ >> 1 error generated. >> >> Do you know what I am doing wrong? I'm not sure what is the best way >> to handle this header file problem. >> >> I'm running Ubu...
2012 Jul 09
0
[LLVMdev] Unable to do even basic Clang tutorial
...ither worked: >> >> $ clang++ -I llvm/include tutorial1.cpp >> In file included from tutorial1.cpp:5: >> In file included from llvm/include/llvm/Support/raw_ostream.h:17: >> In file included from llvm/include/llvm/ADT/StringRef.h:13: >> llvm/include/llvm/Support/type_traits.h:20:10: fatal error: >> 'llvm/Support/DataTypes.h' file not found >> #include "llvm/Support/DataTypes.h" >> ^ >> 1 error generated. >> >> $ clang++ -I llvm/tools/clang/include/ tutorial1.cpp >> tutorial1.cpp:5:10: fatal error: &...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...a-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file > > >> included from tutorial1.cpp:5: In file included from > > >> ./llvm/Support/raw_ostream.h:17: > > >> ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error: > > >> 'llvm/Support/type_traits.h' file not found > > >> > > >> include "llvm/Support/type_traits.h" > > >> ^ > > >> 1 error generated. > > >> > > >> Do you know what I am doing wrong? I'm not sure what is the best way > >...
2009 May 13
0
[LLVMdev] LLVM is deleting an array pointer without using array notation
...tatic.h on line 21: template<class C> void object_deleter(void *Ptr) { delete (C*)Ptr; } And it is being passed an array to delete in file PseudoSourceValue.cpp on line 23: static ManagedStatic<PseudoSourceValue[4]> PSVs; A template specialization for array types will work, the tr1::type_traits or boost::type_traits (same thing and you can include the parts you wish to use with LLVM, the license encourages that) can detect an array type like that and specialize based on it. If you do not mind including a few boost files with LLVM for the Boost.Type_Traits and Boost.Enable_If then I can s...