These are chat archives for boostorg/hana

13th
Jan 2016
Jason Rice
@ricejasonf
Jan 13 2016 00:46
Somewhere along the line I gained the incorrect assumption that unused parameters were strictly used for overloading and didn't result in a copy if you didn't specify const&. :open_mouth:
Even an empty struct gets copied.
; Function Attrs: uwtable
define i32 @main() #3 {
  %1 = alloca %struct.Silent, align 1
  call void @_Z5helloI6SilentEvT_()
  ret i32 0
}

; Function Attrs: nounwind uwtable
define linkonce_odr void @_Z5helloI6SilentEvT_() #4 comdat {
  %1 = alloca %struct.Silent, align 1
  ret void
}
@ldionne Did your clang built-in ever get looked at?
Jason Rice
@ricejasonf
Jan 13 2016 02:54
The search bar in the docs appears to be broken.
Maik Klein
@MaikKlein
Jan 13 2016 09:12
Can confirm the search bar is also broken for me.
Is there an alternative to unpack?
  auto r4 =
    hana::unpack(t, [](auto&... r) { return ranges::view::concat(r...); });
this will always crash the compiler :(
I need to pass the elements of a tuple to a function
int
main()
{

  std::vector<int> iv{ 1, 3, 4, 5 };
  std::vector<float> fv{ 1, 3, 4, 5 };

  auto r1 = ranges::view::all(iv);
  auto r2 = ranges::view::all(fv);
  auto r3 = ranges::view::zip(r1, r2);
  auto rint =
    ranges::view::zip(r3, ranges::view::closed_ints(0ul, ranges::size(r3)));
  auto t = hana::make_tuple(rint, rint);
  auto r4 =
    hana::unpack(t, [](auto&... r) { return ranges::view::concat(r...); });
  //crash
  for(auto t: r4){

  }
}
Maik Klein
@MaikKlein
Jan 13 2016 09:23
Also tried
  auto r4 =
    hana::unpack(t, ranges::view::concat);
oh nvm sorry, it is completely unrelated to hana.
Maik Klein
@MaikKlein
Jan 13 2016 09:37
I run into way too many compiler errors lately, any ideas? How can I check which version of libstdc++ is used by clang?
Louis Dionne
@ldionne
Jan 13 2016 15:44
@MaikKlein You can try clang++ -E -x c++ - -v < /dev/null and see if the header search paths help you. Otherwise, see this SO question.

@ricejasonf

Did your clang built-in ever get looked at?

Not yet... Still waiting.

The search bar in the docs appears to be broken.

How is it broken? It seems to work for me.

Jason Rice
@ricejasonf
Jan 13 2016 17:20
Yesterday it wasn't populating search results box. It's working for me now though.
Louis Dionne
@ldionne
Jan 13 2016 17:40
Strange; perhaps some javascript requirement was unable to load properly?
Jason Rice
@ricejasonf
Jan 13 2016 17:54
idk.. I tried hard refreshing it yesterday without change. I saw xhr requests with 200 responses but no response body.
Louis Dionne
@ldionne
Jan 13 2016 17:55
Well, as long as it works now. Plus, I have not changed anything significant that could have broken this.
Jason Rice
@ricejasonf
Jan 13 2016 17:56
I guess they aren't actually xhr requests. naw it's working fine now. It could have been a github thing
Jason Rice
@ricejasonf
Jan 13 2016 20:53
It would be handy to have a version of partial or capture that captures by reference.
Barrett Adair
@badair
Jan 13 2016 20:55
Indeed!
Maik Klein
@MaikKlein
Jan 13 2016 21:07
okay it seems clang3.7 on arch is broken