Skip to content

Instantly share code, notes, and snippets.

@EoD
Last active August 6, 2017 20:26
Show Gist options
  • Save EoD/cba4e42ba102c54f90f24d8c26629f79 to your computer and use it in GitHub Desktop.
Save EoD/cba4e42ba102c54f90f24d8c26629f79 to your computer and use it in GitHub Desktop.
OpenCL Platform detection broken
--- /tmp/type_new 2017-08-06 22:25:33.231933618 +0200
+++ /tmp/type_old 2017-08-06 22:23:49.471936983 +0200
@@ -6,18 +6,17 @@
void _M_construct_aux<char*>(pointer, pointer, std::__false_type);
void _M_construct_aux<char const*>(pointer, pointer, std::__false_type);
public:
- std::__cxx11::basic_string<_CharT, _Traits, _Alloc> & assign<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, void>(__gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >);
- std::__cxx11::basic_string<_CharT, _Traits, _Alloc> & replace<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, void>(const_iterator, const_iterator, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >);
+ std::__cxx11::basic_string<_CharT, _Traits, _Alloc> & assign<__gnu_cxx::__normal_iterator<char*, std::vector<char> >, void>(__gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >);
+ std::__cxx11::basic_string<_CharT, _Traits, _Alloc> & replace<__gnu_cxx::__normal_iterator<char*, std::vector<char> >, void>(const_iterator, const_iterator, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >);
private:
- std::__cxx11::basic_string<_CharT, _Traits, _Alloc> & _M_replace_dispatch<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > > >(const_iterator, const_iterator, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >,
- std::__false_type);
+ std::__cxx11::basic_string<_CharT, _Traits, _Alloc> & _M_replace_dispatch<__gnu_cxx::__normal_iterator<char*, std::vector<char> > >(const_iterator, const_iterator, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, std::__false_type);
public:
- void basic_string<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, void>(__gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, const _Alloc &);
+ void basic_string<__gnu_cxx::__normal_iterator<char*, std::vector<char> >, void>(__gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, const _Alloc &);
private:
- void _M_construct<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > > >(__gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >);
- void _M_construct<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > > >(__gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, std::forward_iterator_tag);
- void _M_construct_aux<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > > >(__gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, std::__false_type);
- static void _S_copy_chars<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > > >(pointer, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >);
+ void _M_construct<__gnu_cxx::__normal_iterator<char*, std::vector<char> > >(__gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >);
+ void _M_construct<__gnu_cxx::__normal_iterator<char*, std::vector<char> > >(__gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, std::forward_iterator_tag);
+ void _M_construct_aux<__gnu_cxx::__normal_iterator<char*, std::vector<char> > >(__gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, std::__false_type);
+ static void _S_copy_chars<__gnu_cxx::__normal_iterator<char*, std::vector<char> > >(pointer, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >, __gnu_cxx::__normal_iterator<_CharT*, std::vector<char> >);
typedef __gnu_cxx::__alloc_traits<_Alloc>::pointer pointer;
typedef __gnu_cxx::__alloc_traits<_Alloc>::size_type size_type;
(gdb) x/8xb platformName.c_str()
0
Trial 2... 0x7ffd39f6e900: 0x43 0x6c 0x6f 0x76 0x65 0x72 0x00 0x00
(gdb) x/8xb platformName.c_str()
0
Trial 2... 0x7fa5980a8900: 0x43 0x6c 0x6f 0x76 0x65 0x72 0x00 0x00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment