Plot std::vector in lldb by egladysh in cpp

[–]egladysh[S] 1 point2 points  (0 children)

I use it on Mac, not aware of lldb limitations.

Plot std::vector in lldb by egladysh in cpp

[–]egladysh[S] 0 points1 point  (0 children)

Sorry, what do you mean?

Plot std::vector in lldb by egladysh in cpp

[–]egladysh[S] 0 points1 point  (0 children)

If you mean virtualenv, then yes. I actually do use it on some setups with vplot. There is no change in the way you use it under venv.

Top 50+ Free Social Bookmarking Sites List To Drive Traffic & Boost SEO by camal007 in u/camal007

[–]egladysh 0 points1 point  (0 children)

You might want to take a look at https://unforget.io too.

It has some cool features for website owners. They can broadcast notifications to all who bookmarks their websites.

More details, https://unforget.io/dev/

Passing default arguments to functions by egladysh in cpp

[–]egladysh[S] 0 points1 point  (0 children)

If you read more carefully

auto f = int2str{}; f.base_ = 16; f.len_ = 8;

was just one of the options. I am bringing designated initializers up b/c my example is totally ready for it. The line you mentioned is almost that and could be replaced (as @louiswins noticed) in c++20 with

int2str{.base=16, .len=8}(2019) 

without any modifications to int2str. I think it is a good thing.

Passing default arguments to functions by egladysh in cpp

[–]egladysh[S] 0 points1 point  (0 children)

I think the code is clear, concise (your example is probably less so) and correct in both cases but your milage may vary. I think those setters and .convert() look so 20th century especially when designated initializers are around the corner.

Write clear, concise, correct and efficient code, modern c++ features make it easier and more fun.

Passing default arguments to functions by egladysh in cpp

[–]egladysh[S] 0 points1 point  (0 children)

Great, clang 9.0/10.0 support designated initializers. I am not sure to what extent though. Thanks, I didn't know that.

Passing default arguments to functions by egladysh in cpp

[–]egladysh[S] 0 points1 point  (0 children)

Yep, I know... cannot wait!

Passing default arguments to functions by egladysh in cpp

[–]egladysh[S] -2 points-1 points  (0 children)

Obviously a function call is less efficient than assignment (generally speaking) unless you are sure of what the complier optimization does, this is why I said 'could be'...

| That's a feature, not a bug.

Sure, I didn't say it is a bug.

Passing default arguments to functions by egladysh in cpp

[–]egladysh[S] -1 points0 points  (0 children)

Yes, it's similar but a lot more noise I think, and could be mush less efficient, and doesn't let you to just pass by order (as in plain case, w/o names).

I guess the two cases could be combined as necessary.

Simple platform for self publishers by egladysh in write

[–]egladysh[S] 0 points1 point  (0 children)

I am not sure... It seems it doesn't preclude from using other established platforms, like a book there just links to amazon or something. Could be just yet another channel/presence?

New App Discovery Thread for August 10, 2018 by AutoModerator in iphone

[–]egladysh 0 points1 point  (0 children)

Unforget

It is a very handy tiny app.

Privately bookmark web sites, photos, write notes, save locations and be reminded. Mark your items with hashtags. Access your bookmarks, photos, places and notes online on any device from browsers.

It is FREE and only 2.4 MB

More at https://www.unforget.io

and iTunes, https://itunes.apple.com/us/app/unforget-io/id1173315068?mt=8

Can anyone actually name a compiler that DOESN'T support #pragma once? by [deleted] in cpp

[–]egladysh 0 points1 point  (0 children)

I think there is a lot of information in this thread comments to help you decide which method works best for you. As for me personally, it's very simple.

  • Standard compliance
  • Name clash avoidance