« first day (481 days earlier)      last day (4476 days later) » 

12:01 AM
Ugh, first day of a cold.
 
:(
 
Throat irritation making me swallow indeliberately. This prevents me from falling asleep.
Ah well.
 
@StackedCrooked Distract yourself by reviewing my tiny API.
 
man
Jonathan Creek is awesumsauce
 
@Maxpm an enum, a struct, and two functions? Not much of an API. Page seems poorly formatted
 
12:06 AM
@MooingDuck Every module and class has an API.
It has an Interface, to which Applications Program.
 
string Format(immutable string Text, immutable Color TextColor = (Color).DEFAULT, immutable Color BackgroundColor = (Color).DEFAULT, immutable bool Bright = false, immutable bool Flash = false); => I would use different types for text color, background color (e.g. BOOST_STRONG_TYPEDEF) and enums for the Bright/Flash params.
 
@StackedCrooked why would you do either of those? A color is a color. All values are valid in both sides. And for Bright, that's why they added bool to the language!
 
@StackedCrooked So people can't mess up the parameter ordering?
 
This way you can call the function like this: Format("Hello", TextColor(Blue), BackgroundColor(Green), NoBright, NoFlash);
 
@Maxpm there's a distinct lack of that meta-info on the page
 
12:08 AM
@Maxpm Exactly!
 
@MooingDuck Meta-info?
 
@StackedCrooked seems wierd, but it makes sense.
 
@MooingDuck It prevents errors and helps readability.
 
@Maxpm is this a C++ or Java or Javascript API?
 
@MooingDuck D, actually.
 
12:12 AM
@Maxpm At least there should be a link somewhere saying what this API is and is for.
 
the immutable gives it away
 
@DeadMG I've never seen D syntax before. I probably should look into it at some point
 
@MooingDuck You're right. The project page is at code.google.com/p/decora, but I'll add documentation to the module itself.
 
@Maxpm yeah, that's the meta info I wanted :D
 
Okay. Your suggestions are in the issue-tracking system. Thanks!
 
Xeo
12:21 AM
@jalf: "Attached is a patch that adds support for the C11 keywords _Thread_local and _Alignof." from a [Patch] mail in the Clang maillist. Maybe they're not too far away from thread_local? :)
 
@Maxpm Lol, a bug tracking system for a one file project? :D
 
@StackedCrooked Yup. I actually find it helps a lot.
 
I like to commit a Todo.txt file to my personal projects.
Each one's own style I guess.
 
woah, the last panel talk of GoingNative is insipiring. :)
 
Question: Is it possible to write to a file online, externally from a computer?
 
12:27 AM
@Hoxieboy you don't want to write the file by hand I hope?
 
@Hoxieboy SSH?
 
of course not
 
SSH, SCP, subversion, FTP, HTTP POST/PUT, ...
 
(this is generalized around python) python has an ftp module that lets me upload files, I was thinking about making a temporary file with the changes, and then uploading that file to the dropbox account, but I wish there was a streamlined way to do it
 
Xeo
@TonyTheLion It's super-special-awesome!
 
12:29 AM
as in, open the file thats on the ftp site, and making the changes directly to the file
 
Xeo
Time for building Clang again, yay. \o/
 
I was just wondering if its even POSSIBLE to do that, without a webscript of some sort
 
@Hoxieboy I don't think that can be done with FTP.
 
@Xeo I agree :) I love what Google is doing with clang :)
 
Xeo
12:37 AM
> A little bit of lambda IRGen.
YaY
Lambdas are coming along quite nicely it seems
 
@Hoxieboy FTP only handles full file transfers right? Not partial writes? So you'd have to "write" the entire file at once. Meaning best practice would be to buffer writes in some sort of temporary file with the changes before you upload....
I was this close to writing "FTP protocol"
 
Xeo
A protocol about a protocol! A meta protocol!
 
@Xeo UML/XML?
 
Xeo
> Introduce basic ASTs for lambda expressions.
Yep, coming along nicely. ♪~
 
so, how many times have you built clang now?
 
12:51 AM
@TonyTheLion too many
 
seems like
but why rebuild it all the time?
 
Xeo
@TonyTheLion 5 times maybe?
Or 6
@TonyTheLion Because the trunk constantly updates
 
oh, but then don't you end up spending more time building clang then using it?
can't you say, "I'll rebuild every x weeks" or something?
 
Xeo
@TonyTheLion The release build is actually quite fast and by far not as resource consuming as the debug build
Takes maybe an hour or so?
 
oh ok
I thought it took forever, that's why
 
12:55 AM
What is going wrong with this world? :( People more value something unethical rather than ethical, or is it just my assumption?
 
Xeo
@TonyTheLion The debug build does.
 
@DzekTrek you can't generalize a statement like that, only some specific people value unethical things more than ethical ones, and these particular people then go around and generalize what they are doing to mean that everyone is doing it. If you ask them WHO is doing this, you'll mostly find out it's just one or two people.
 
Xeo
I was amazed at the difference in time and resource usage between an optimized (release) build and a debug one...
 
"The destructor doesn't delete e... Because if I put delete e in destructor, it gives me a double free error, because I attempt to delete it twice, first in the ++, then in the destructor." And he wonders why his code acts funny.
 
12:58 AM
lol
 
Xeo
...
 
@DzekTrek "This video contains content from EMI, who has blocked it in your country on copyright grounds."
 
Xeo
@Mooing, I have to scold you. Why hast thou not introduced him to smart pointers?
 
Welcome to America, The land of the "free"
 
Xeo
@TonyTheLion Germany is worse. Fucking GEMA
 
12:59 AM
@Xeo I am! "You should be able to replace all element* with std::unique_ptr<element>, and anything that doesn't compile is probably wrong."
 
Xeo
Oh, I overlooked that.
 
@TonyTheLion , OK, but why then majority of people sympathize or agree with the actions that aren't ethical at all? @MooingDuck It's a song called "It's my life" from Talk Talk group.
 
@Xeo I also had it in my answer as soon as I saw delete e;
 
posted on February 09, 2012 by Herb Sutter

Thanks to everyone who came to Redmond and/or watched online to participate in Going Native 2012, last week’s global C++-fest. It was a lot of fun, and generated a lot of useful and important talks that we hope will help continue disseminate understanding of C++11 throughout the global C++ community. All the videos are now [...]

 
Xeo
1:01 AM
HERB, Y U SO SLOW? :>
 
@Feeds what the... Feeds?
 
Xeo
@MooingDuck Don't remember him?
 
@DzekTrek NO, you don't get it, the people doing these unethical things, that prefer them over doing the right thing, are the one's that make you feel like everyone (note the generalization here) is doing unethical thinks, and that everyone (note the generalization again) is agreeing with them
 
Feeds profile says "Last posted: 2d ago"
@TonyTheLion tl;dr
 
go around and ask individual people on what their view is of these unethical actions, you'll be surprised to find that mostly people don't agree
@MooingDuck it's two lines, you don't need a tl;dr
 
1:02 AM
@TonyTheLion especially if you use the word "unethical"
 
More of me ranting about VIM. Is there a good StackExchange blog for this to get posted on?
 
@MooingDuck whatever word you use, you could use "wrongdoing", "crime" or whatever word you think is appropriate
 
@TonyTheLion So what is it that keeps one more louder than the others? There is a cause for everything so does for this specific case. I mean if they were in majority and are against something, but can't confront it, does it mean they are cowards? I mean mocking at some powerless elder man is not something all should do, but they do, which comes to that part " why does everyone do it "?
 
I read that Facebook is programmed in C++ for its server backend programming and then that code is compiled into PHP which runs on the website. How exactly is a website written in C++?
 
1:04 AM
Is there a way to copy a directory recursively with Boost? Or do I have to mock it on my own with the recursive directory iterator?
 
@TonyTheLion Go around and ask individual people on what their view is of "starving children" and 99.99% will say it's horrible and we should do something. Go around and ask individual people on what their view is of "raising taxes" and 99.99% will say it should not happen. If you're trying to get a poll on raising taxes to feed starving children, neither is accurate.
 
@user1079641 Look for Tornado.
 
why all this philosophy?
 
Xeo
@wilhelmtell Doesn't boost::filesystem::copy do exactly that? Copy the whole slew?
 
Does it?
If path is a directory?
 
1:06 AM
@wilhelmtell I'd imagine it's pretty trivial either way...
@TonyTheLion because unethical things are funny
 
@TonyTheLion I have no idea, it just got on my mind. :)
 
Xeo
There's also copy_directory it seems
 
@MooingDuck I was hoping i won't need to, because it feels tricky. Taking care of directories, regular files, sylinks, hardlinks, devices, ...
 
@MooingDuck funny or not, they're going against some agreed upon moral code of some group of people.
 
Xeo
@wilhelmtell According to the docs, yes:
 
1:07 AM
@Xeo "Thanks for your support, I'll try asap to change the whole code with unique ptr<element> – Vektor88 " A PARTIAL SUCCESS!
 
Xeo
Effects: As if

    file_status s(symlink_status(from[, ec]));
    if(is_symlink(s))
      copy_symlink(from, to[, ec]);
    else if(is_directory(s))
      copy_directory(from, to[, ec]);
    else if(is_regular_file(s))
      copy_file(from, to, copy_option::fail_if_exists[, ec]);
    else
     Report error as specified in Error reporting.
 
Tornado?
 
@user1079641 I'd assume thats the name of the thing/process for C++ -> PHP
 
1:08 AM
@MooingDuck the ultimate question is, is raising taxes to feed starving children the right thing to do.
 
@Xeo fi( is_directory(s) ) copy_directory()
 
@TonyTheLion But neither poll got even close to people's actual support for such a thing
 
@Xeo copy_directory() effects: nil
wtf
 
Xeo
@wilhelmtell Huh?
 
1:09 AM
My English is improving every single day. :)
 
no effects documented for copy_directory()
 
"Tornado is a relatively simple, non-blocking Web server framework written in Python" I already don't like it
 
is raising taxes ever the right thing to do?
 
Xeo
@wilhelmtell Yeah, best look into the implementation itself
 
isn't it just a symptom of a deeper problem
 
1:11 AM
Dammit, can't sleep.
 
@TonyTheLion we weren't technically discussing that. We were discussing people's support and misleading questions.
 
@Xeo I looked. copy_directory() doesn't exist. Or, maybe it does, in boost::filesystem::detail.
 
@MooingDuck Actually it's not written in Python, but in C++ and Python. C++ handles with a backend processing of the data, and python deals with manipulation.
 
Xeo
@wilhelmtell Strange stuff
 
@DzekTrek if you say so
 
Xeo
1:11 AM
0
Q: How can I copy a directory using Boost Filesystem

AntHow can I copy a directory using Boost Filesystem? I have tried boost::filesystem::copy_directory() but that only creates the target directory and does not copy the contents.

Here's a reference implementation, anyways.
 
a weird thing for a signature that's in the API
 
@MooingDuck no, we were discussing unethical actions, and what individuals views are on unethical actions. not groups of people
 
@TonyTheLion True. I was discussing polling techniques, completely aside :(
 
@Xeo saw that. did you read the answer's code? total n00b, don't know who upvoted that.
 
Xeo
1:13 AM
Heh
No, I didn't. :>
 
@TonyTheLion I apologize for derailing. (I'm learning to apologize for stuff, I have a GF now)
4
 
@TonyTheLion Actually we were discussing groups of people, one that support ethical and one that don't.
 
std::cerr << source.string().c_str() for one thing. I stopped reading around that point.
 
@MooingDuck no need to apologize to me, I'm not your girlfriend. :)
 
Glad we got that cleared up.
 
1:15 AM
@DzekTrek well, yes, but groups of people are made up of individuals
one person != every other person in a group
 
Individual cells, to be more precise.
 
@MooingDuck is she canadian?
 
@TonyTheLion, these aformentioned groups were/are highly polarized, meaning that one person is either in one group or another.
 
@DzekTrek I can't find any C++ in the sourcecode: github.com/facebook/tornado
@wilhelmtell Mexican. Thus I have to apologize.
 
Xeo
TIL: We have std::call_once and std::once_flag. [from here]
 
1:17 AM
@MooingDuck that's just open source that FB provides
 
@MooingDuck lol
 
Xeo
Making these links-in-square-brackets looks funky: \[[name](link)]
 
the one that they don't contains sources that process backend data
 
@DzekTrek that's the Tornado source. Tornado does not have cpp. They might use it with C++ internally, but that C++ is not part of Tornado.
 
It makes zero sense to compile C++ into PHP. Zero sense, none at all.
 
Heh. Didn't know SO has links to comments!
 
@wilhelmtell it's new. They don't onebox though
 
onebox?
 
3
Q: Add support for secure Wikipedia pages to Onebox

IsziI use HTTPS Everywhere in Firefox, and so all of my requests to Wikipedia (among other sites) get automatically re-directed by the browser to their secure site. This gives me headache when I want to post an article to chat, and have it Oneboxed. Onebox works fine for me on regular Wikipedia lin...

 
@MooingDuck , well yes, internally C++ is connected to Tornado. :)
 
1:22 AM
see how it expanded to show details?
@DzekTrek connected to. Not part of.
 
But I used generalization, since Tornado can't work what it works without backend C++ processing.
 
ah.
 
Xeo
Yay, ideone is spinning infinitely again...
Yep, llvm + clang release build took nearly an hour
 
Xeo
1:50 AM
vim help please..
How can I simply replace a given string with another one? :s
 
:%s/original/replacement/g
 
Xeo
Thanks
@Luc, you there?
I need somebody who knows Boost.Range :s
 
Xeo
@SethCarnegie Heh, they're not so useful, except for some wrapper types in libraries maybe
 
I've run into some situations where it would reduce a lot of boilerplate code though
 
2:04 AM
They're good for making strong typedefs.
 
What is a strong typedef?
 
Xeo
@SethCarnegie typedef that produces a new type
and not an alias
 
e.g. struct Attributes : public std::map<std::string, std::string> {};
 
Oh yeah, I see
never heard it called that before
Does anyone else use Segoe UI for everything
 
user868935
Hey all
 
Xeo
2:09 AM
Okay, anybody any idea what could be wrong with this simple Boost.Range usage? ideone.com/AeMB8
 
important question

it is regarding html5 audio say you want to play a music continuously, so if he refresh the page, how you can go to the same secs in html5?

for better example:

user 1: listens to a song to 2:15 secs then he reload the page, so when the page reloaded how you can go back to 2:15 secs directly without having to play from 0:0 again?
You can see this at sitepoint.com/…
 
Xeo

HTML

Discussion for all things HTML, including HTML5 and such.
 
@Riley Cookies? Sessions?
Actually, I don't think cookies would work. They must be sent in the HTTP header, before the actual web page is loaded.
I think.
It's been a while since I've tried making a website, and I didn't particularly enjoy it.
 
@Maxpm would this work just as well as something like you see on hypem.com grooveshark.com for this for the playlist player that stays stationary and browser request load inside
 
@Riley I have no idea.
 
2:25 AM
I've been on this for for weeks now
 
0
Q: Hoard memory allocator

Dzek TrekHoard memory allocator I'm reading papers about Hoard memory allocator, and everything is understandable, but one thing not, how it reduces contention for the heap caused when multiple threads allocate or free memory, after avoids the false sharing that can be introduced by memory allocators and...

@Xeo , you made HTML chatroom? :)
 
I guess I'm missing something or need to reinforce my fundamentals but I cannot get a clear explanation of how code this into a site
 
Xeo
@DzekTrek No
Sheesh, fixed the range problem. -.-
 
@Riley My (probably awful, but also probably functional) solution would be to save the user's current time to a database every few seconds. When a user refreshes, the player checks to see if that user has logged a time in that session. If so, skip immediately to that time.
The downsides are that it would probably put a lot of strain on database servers, and sounds would not resume from the exact point they were left on.
 
Xeo
Great. Boost page says header-only, but Boost.Range insists on linking libboost_regex -.-
 
2:34 AM
What is grooveshark using for the play playlist using for the they live it doesn't refresh content is loaded within the page it's Ajax right JavaScript but it looks all custom .. I found that an example hypem.com add to JS files are able to download and there are 22
 
@Riley I'm really not sure. Web development isn't "my thing." It's a good question, though; I'm sure you'll get some interesting answers if you ask on Stack Overflow.
 
Xeo
Okay, how do you get code correctly displayed after a list in an answer?
Funny. I don't get libboost_regex linked on Linux..
 
2:53 AM
@Xeo You could use <pre> and </pre> HTML tags.
 
I posted this Question the answer I received so far really does not clear up what I'm confused about Ajax were can someone please show me an example of one in use for this stackoverflow.com/questions/9204526/…
 
Hi guys ! I want to get experience with Boost library. Which feature of Boost is fun to start with ?
 
hey
Boost is not a library
it is a collection of them
 
Xeo
3:09 AM
Somebody mind helping closing this question?
 
@DeadMG Ok. Which collection is fun to start with ?
 
uh, one that serves a need you have?
 
Learning in general. No specific need.
 
then obviously none of them are appropriate, as they only serve a specific function
 
k
 
3:24 AM
<div id=pixelFrameWrapper
 
4:15 AM
@Xeo Oh hello.
 
Xeo
@LucDanton Oh hi :)
Fixed the problem already, stupid lambdas don't have a result_type that Boost.Range demands -.-
 
Doesn't Boost.Range use Boost.ResultOf? :(
 
Xeo
I think... ?
 
There's a macro to enable Boost.ResultOf to use decltype.
 
Xeo
I wonder why I couldn't fix it with std::cref, it has a nested result_type too for functions...
@LucDanton What was it again?
 
4:18 AM
Apparently they decided not to activate that automatically, for some reason. (Reason being some compilers don't have the 'right' decltype I guess.)
BOOST_RESULT_OF_USE_DECLTYPE
 
Xeo
Thanks
Alright, works
And I somehow got rid of that strange libboost_regex linker-include by including the adaptor headers directly instead of adaptors.hpp...
 
> #include <boost/regex.hpp>
in boost/range/adaptor/tokenized.hpp
 
Xeo
Ugh
I somehow feel dirty to add an eager algorithm through the pipe syntax...
 
Uh are the results stored in the range-like object that is returned?
 
Xeo
Yes, but for a reason. :P
  auto modded = squared | filtered([](int i){ return (i % 2) == 0; })
                        | converted<std::deque<int>>(); // <== culprit
 
4:25 AM
Hah, I think I actually considered such an adaptor once. Forgot what for though.
 
Xeo
I stumbled upon this question :)
 
Oh yeah, to allow nesting of algorithms.
 
Xeo
Yep, that's another reason.
STL algorithms really hate composability it seems..
 
transform(copy(input(foo), push_back_converter(std::vector<T> {})), filter)
 
Xeo
needs .begin() and .end() :P
or s/std/boost
 
4:28 AM
Oh wow, too much std.
 
Xeo
Or completely removed..
 
Anyway, I don't think it's worth it until Boost.Range is move-aware.
Although I guess a solution with reference semantics (i.e. some shared pooter) wouldn't be that bad.
 
Xeo
Hm...
Btw, it was interestingly easy to extend the pipe syntax.
Could've even been done in-class with a friend
 
Mmmh, so you did completely forgo what the documentation said, did you?
 
Xeo
Uhm... not really, since the create<T> is actually a "holder" if you want
Oh wait, I did circumvent the forwarder
 
4:33 AM
I don't know why they're putting up with that nonsense.
AFAICT ADL + overload resolution works just fine.
 
Xeo
No wait, I didn't circumvent anything. I followed the guide for argument-less adaptors :>
Though that guide is kinda.. incomplete
 
Which is a shame, as I'd find myself writing adaptors more often than I'd write fully-fledged range/iterators I think.
 
Xeo
operator|( const BidirectionalRng& r, detail::reverse_forwarder )
As if I want to write range | detail::reverse_forwarder()
 
Yeah I didn't get how that'd work.
Documentation appears to be identical in the 1.49 beta.
 
Xeo
Good thing you can't specify templates without () after it, so I just went for the global space and did exactly that
 
4:37 AM
I think you're supposed to write auto constexpr reversed = detail::reverse_forwarder {};
 
Xeo
Yeah, but that won't work for templates
 
And there's probably a very good reason to use those techniques, i.e. some kind of ADL + overload resolution hiccup with function templates that look each as specialized as the other. But the documentation is still bad.
template<typename Foo> using adapted = detail::adapt_forwarder<Foo> {};
 
Xeo
No, wait.
You can't construct in an alias
Can you?
 
Dunno!
 
Xeo
It's just a type!
I guess you could do foo<T,U>, but the template parameters will be erased from that. :/
 
4:40 AM
GCC does choke on it.
 
Xeo
Yeah, using isn't a universal aliasing utility {yet, alas}
 
Since I also am not expecting the forwarders to use perfect forwarding I have no regrets.
 
Xeo
@LucDanton I really can't see how that could ever happen
 
Welp, guess it's time to check what overloads of operator| are defined.
 
Xeo
Screw Ideone for not providing Boost in C++0x mode. :| And for not even having a recent Boost version that has Boost.Range in normal C++03 mode!
@LucDanton Just screw up and the compiler will list them all neatly for you
Like piping 42 in or sth
There's a shitload of overloads it seems..
 
4:45 AM
All those that need template arguments use that forwarding stuff.
 
Xeo
Wait, even the lhs are forwarders
 
@@@@
 
Those that don't make sure that e.g. copied(1, 5) simply is a temporary, then there's an overload operator|(Range const&, copied) and the arguments stored in the temporary are used to construct the new range.
 
Xeo
Okay, where's the difference between copied and sliced ?!
 
The template ones put their operator|(Range&, foo_holder<Parameter> const&); into another namespace and let ADL do the deal.
@Xeo I honestly don't know.
 
Xeo
4:51 AM
Even the examples are basically the same
 
A 2 got changed into a 1!
 
Xeo
Yeah, iterates one less
But beside that.. the functionality seems to be the same
 
Xeo
5:02 AM
Hmm.. I wonder if my converted would be more useful if it constructed the new container with a std::ref of the values of the old container.. hm...
 
What old container?
 
Xeo
Or whatever you get back from the range adaptors
 
What if the values are from std::input_iterator<T>?
Also, converted<std::vector<std::reference_wrapper<T>>> would work fine, wouldn't it?
 
Xeo
Yeah, just tested that
Works fine
 
Always stay generic!
Hence why my tuple::transform perfectly forwards the results! if you want to own the results, then do decay_tuple(transform(tuple, functor))!
 
Xeo
5:06 AM
Uhh... no wait, it doesn't...
Dangling pointers
 
Mmh I wonder if the converse to ref shouldn't be val but decay instead...
 
Xeo
Something returns by-value -.-
 
room topic changed to Lounge<C++>: Embarrassing remarks are not allowed! [c++] [c++11] [c++-faq]
 
@Xeo Don't have much of a choice in C++03.
 
Xeo
The filtered returns by-value, arrrggh
 
5:08 AM
The real shame is that there isn't a 'trivial' range.
Something like transform(view(some_container), functor)
Just like Boost.GIL has view and const_view.
 
Xeo
No wait, they do all return by value. Holy crap.
Isn't that like.. freaking inefficient?
 
It's C++03 style. You can't perfectly forward, so either you have to mangle const-ness, or use pass by value.
 
Xeo
Oh boy...
Hm, I'm somehow missing a general mapped that accepts a pointer-to-member...
I guess I'll abuse transform for that...
 
Just bind it. Or mem_fn it.
 
Xeo
Nah. lambda
That's strange...
My tracer shows no moves/copies for the adaptors...
  auto squared = v1 | transformed([](int i){ return i * i; })
                    | converted<std::vector<tracer<int>>>();
  boost::for_each(squared, [](tracer<int> const& i){ std::cout << i << " "; });
  std::cout << "\n========================\n";
  auto modded = squared | reversed
                        | filtered([](tracer<int> const& i){ return (i.get() % 2) == 0; })
                        | transformed([](tracer<int> const& t){ return t.get(); })
                        | converted<std::vector<int>>() // gimme back my vec
No output after the ========... line, only after the modded vector was printed do I get some dtors
That's rather interesting
 
5:22 AM
Laziness in action?
 
Xeo
Then why did I get dangling references with reference_wrapper<const T>?
If there were no copies involved...
 
Where did you switch to reference_wrapper? Second conversion?
 
Xeo
Yes
at // gimme back my vec
 
Presumably t.get() does return a reference?
 
Xeo
Yes
But I didn't even use my tracer with the reference_wrapper
 
5:25 AM
What did that second transform look like then?
It wasn't here at all, was it?
 
Xeo
not existing
 
Definitely some shady stuff going on.
 
Xeo
auto modded = squared | reversed | filtered(...) | converted<...>();
was it, basically
 
Xeo
5:37 AM
Templates and auto.. with that, one can really understand why functional languages love type inference so much
 
Meh, much more related to things like polymorphism and genericity than FP. See: dynamically typed FP languages.
 
Xeo
Well, I just wanted to say that type inference is awesome.
@LucDanton Back to that topic btw, it's not included when I compile on linux with Clang
Or atleast it doesn't try to automatically link it
I have a gut feeling there's a #pragma comment(lib,"...") somewhere in that header...
 
So do I. But that's the limit of my knowledge regarding MSVC.
 
user868935
how do make this function accept user input? Im trying to do something like this: void setVar(string var1["take in the number a user enters here"]) { }
 
Xeo
@LucDanton Some weird boost/config/auto_link.hpp file...
 
5:47 AM
@Paul I don't understand your pseudocode. Do you want to accept a variable number of std::string in, or do you want to read input from the user?
 
Xeo
Woot, /DBOOST_ALL_NO_LIB
That was friggin irritating, just linking stuff automatically in. A bit like having politicians decide what is good for me...
 
Stop sounding American and write to your representatives.
 
Xeo
Hour-long interview with Walter and myself about D on Channel 9 coming soon. Stay tuned!
Could get some people interested. @FredO?
 
user868935
@LucDanton I want to read input (int) from the user and place them within var1[] so it will correspond to the string (var1[0], var1[1], var[2] etc) called.
 
@Paul It doesn't make sense to store integers in std::string though. What you can do is pass in a std::vector<int> that the caller fills in however they want.
 
5:57 AM
This Clang refactoring tool mentioned in the last GoingNative panel seems very interesting.
 
std::vector<int> v(std::input_iterator<int>(std::cin), std::input_iterator<int> {}); fills a vector from external input for instance (that's C++11 code).
 
Xeo
template<class _Mutex>
	class lock_guard
	{	// class with destructor that unlocks mutex
template<class _Mutex>
	class unique_lock
	{	// whizzy class with destructor that unlocks mutex
VC11 <mutex> header. lol'd
 

« first day (481 days earlier)      last day (4476 days later) »