Skip to content

Instantly share code, notes, and snippets.

@hia3
Created April 6, 2017 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hia3/b58d9aa0c827d064457dbdc7268e81a6 to your computer and use it in GitHub Desktop.
Save hia3/b58d9aa0c827d064457dbdc7268e81a6 to your computer and use it in GitHub Desktop.
#include <boost/hana/set.hpp>
#include <boost/hana/tuple.hpp>
#include <boost/hana/type.hpp>
int main()
{
boost::hana::tuple<boost::hana::type<int>, boost::hana::type<char>> t;
auto set_types = boost::hana::to_set(t);
// runtime error: constructor call on address 0x003fde6ff8a2 with insufficient space for an object of type
// 'boost::hana::detail::elt<1, boost::hana::type_impl<char>::_, true>'
// 0x003fde6ff8a2: note: pointer points here
// 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 34 ad d1 12 12 00 00 56 17 25 cf f7 7f
// ^
// SUMMARY: AddressSanitizer: undefined-behavior
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment