« first day (466 days earlier)      last day (4482 days later) » 

Xeo
8:00 PM
@EtiennedeMartel Factual answer: Because the law says so.
 
I don't think discussing C++ history amounts to stealing.
 
Indeed.
 
@FredOverflow I think the comparison is "if it is socially acceptable in said context"
 
@rubenvb fixed
 
no, my argument is equivalent to saying "Why can't I steal? There's no evidence that anybody but you has a problem with it and people regularly go around stealing things in plain sight all the time in view of the whole community."
 
8:00 PM
0
A: is_member_function_pointer implementation

Johannes Schaub - litbAlternatively template<bool C> struct bool_ { static bool const value = C; }; template<typename T, typename U> struct is_same : bool_<false> {}; template<typename T> struct is_same<T, T> : bool_<true> { }; template<typename T, typename = bool_<true&g...

 
@DeadMG You know what? You're weird.
 
@DeadMG They do?
 
you made a bad analogy and I showed you up
@RMartinhoFernandes Obviously not. Which is what shows that it's a silly analogy.
 
Replace "stealing" by "something that is against the rules".
 
Xeo
@EtiennedeMartel Since when are expression templates against the rules?
 
8:02 PM
there's nothing against the rules about it
it's a perfectly well phrased, factual question with a factual answer that's directly relevant to programming
 
@Xeo I was referring to the question. Damn it.
 
Xeo
@DeadMG, I think I have to agree with that Chris guy.
 
lol
I think the guy that mentioned PSE has a point.
 
mmh
maybe
 
Xeo
One vote and it's over
 
8:03 PM
I think that would be more along the lines of "Why not use expression templates?"
there's nothing subjective about "In 1998 Herb Sutter said that no compiler would be able to compile them"
 
@DeadMG Yay, I guessed right!
 
oh no stupid this is again illformed
 
Anyone here know why I would be getting these errors?
0
Q: Why am I getting this ifstream error?

OghmaOsirisImplicit instantiation of undefined template 'std::basic_ifstream <char,std::char_traits<char>>' #ifndef MAPPER_H #define MAPPER_H #include <iostream> #include <string> #include <vector> #include "KeyValue.h" #include "Parser.h" using namespace std; class Mapper...

 
@FredOverflow I made that up. If I knew it, I wouldn't ask
 
8:04 PM
@OghmaOsiris #include <fstream>
 
@OghmaOsiris I think there might be a problem with your ifstream
 
@OghmaOsiris because you have a bug in your code
 
@RMartinhoFernandes It was already noted in the question that I did that...
 
@DeadMG The real answer is "You got too much time on your hands" ;)
 
Xeo
Well, streams are noncopyable.
 
8:05 PM
@MooingDuck not helpful.
 
Xeo
So of course you'll get an error if you try to copy them
 
@OghmaOsiris Oh, then the code shown doesn't show the problem. You're probably assigning a stream somewhere.
 
Xeo
No, he is missing <fstream>, but he somewhere tries to copy one
 
> What are expression templates? – Nicol Bolas 50 secs ago
lol
 
Expression templates is a C++ template metaprogramming technique in which templates are used to represent part of an expression
 
8:07 PM
Go write that in a comment.
 
Xeo
> Todd Veldhuizen did his expression template work before 1996 using KAI's C++ compiler. The reason is much more profane... – Dietmar Kühl 2 mins ago
I'm waiting for his answer.
 
@rubenvb now it's hopefully fixed :)
 
well, I think that it's absolutely worth noting that expression templates is considerably faster even than rvalue references in appropriate scenarios
so it could be something to propose for C++2x :P
 
@RMartinhoFernandes Hmmm, how would I then have a member variable be assigned an ifstream?
 
FWIW, the C# compiler will happily optimize "blah" + x + "blah" + y + "blah" to string.Concat("blah", x, "blah", y, "blah") which uses no intermediate strings. It's a bit annoying that C++ won't do the same.
 
8:11 PM
Eh. The faculty of education at my university has weird priorities: their computer labs have decent computers... and 12" screens.
 
@RMartinhoFernandes It will. If you ask it to with expression templates.
 
@RMartinhoFernandes it should be possible to write a string class that does so.
 
@OghmaOsiris You need to show the line that causes the error.
@MooingDuck I know, but std::string isn't that one.
 
@EtiennedeMartel Yay! My favourite - tablets but without the touchscreen or any portability
 
although I think that sbi's answer was pretty much the answer I was looking for
 
8:16 PM
@DeadMG Ha, Dietmar says it's all your fault! :P
 
rofl
 
This is so frustrating. The docs for this jQuery UI DateTime picker addon don't match up with the code. The functions it says are there aren't there.
 
I was a toddler in 1995 :P
 
Xeo
Interesting. auto&& does reference collapsing... I should've expected that, but still.
 
Hmm, I was 8 at the time.
 
Xeo
8:17 PM
4
 
@Xeo auto is powered by the same rules of template argument deduction.
 
Xeo
I know, that's why I said I should've expected that.
 
> You start off a bit unfair, because DeadMG could not lobby for it due to the simple fact that he had barely outgrown his diapers back then and probably hadn't reached the point where he could properly pronounce "C++". :) – sbi 13 secs ago
Hehe.
 
Xeo
Also, why the fuck are string literals lvalues. :|
 
Xeo
8:18 PM
They are
 
because they are alive for all the program time
 
@RMartinhoFernandes Yes, they are.
 
Oh, of course.
 
"because they have addresses" is not a proper answer
 
"blah"_s is an rvalue though. :P
 
8:19 PM
@DeadMG that is plain wrong
 
Xeo
I'm looking for ways to identify literal strings with the least amount of false positives without user-defined literals
 
@Xeo You're fucked.
 
@Xeo You can't.
 
Xeo
char const (&&lit)[N] would've been a good thing :(
 
nah
string literals should be lvalues
 
8:21 PM
char x[10]; move(x) is an rvalue array just as well as alias<int[]>{1, 2, 3} is
 
Xeo
@JohannesSchaublitb I know, I said that I was expecting false positives
 
@JohannesSchaublitb That doesn't need a size?
 
ok
maybe I should just go back to dreamhost and generate a static website in Dreamweaver or Expression Web or whatever it is
 
Xeo
@RMartinhoFernandes Nope, deduced from the initializer list
 
Hey, @sbi, FTR you got two upvotes on your answer to the puppy's question from me.
 
8:23 PM
@RMartinhoFernandes arrays deduce size
 
Xeo
@RMartinhoFernandes two? sockpuppeting?
 
@RMartinhoFernandes I actually voted to close my own question as off-topic on Programmers
 
@Xeo i was referring to @DeadMG
 
@Xeo One on SO, and another on PSE.
 
Xeo
lol
 
8:23 PM
I love working around the system.
 
@Xeo that means that &"foo" is disallowed but &"foo"[0] is not? eh
 
sbi
@DeadMG Actually, I'd vote to reopen it if you do. It seems to fit there just well.
@RMartinhoFernandes Thanks, that's nice to know!
 
@sbi I intended to attempt to have it moved back to SO.
 
Ping pong!
 
who is the best c++ guru on SO ?
 
sbi
8:26 PM
@DeadMG Forget it. This won't work.
 
What's a guru?
 
@sbi That I can tell.
 
@Guillaume07 As the puppy will gladly tell you, it's the puppy.
 
sbi
@RMartinhoFernandes The guru is, you know, the guy who's smoking weed, mumbling dangerous words, and doing template magic.
 
Xeo
I'm not smoking weed. :<
 
8:27 PM
I don't mumble dangerous words
 
i'm not doing template magic :(
 
sbi
@Xeo What do you smoke instead?
@DeadMG You're just a puppy. What could be dangerous about you?
 
Xeo
@sbi Helium.
 
lol
 
sbi
@JohannesSchaublitb Any sufficient advanced...
 
8:28 PM
I can crap on your carpet!
2
 
sbi
@DeadMG I don't have a carpet.
 
@sbi what to fill into the dots?
 
@sbi I can crap on any kind of flooring!
 
sbi
@Xeo How would you smoke that? It doesn't burn.
@DeadMG Yeah, we noticed a long time ago. Plus you can crap on any discussion, too.
 
8:29 PM
lol
 
@sbi It can be used as fusion fuel, but that doesn't produce smoke.
 
@RMartinhoFernandes Using intermediate strings in C++ is not a big problem anymore thanks to move semantics.
 
@Martinho: a guy who master a domain
 
Xeo
@Guillaume07 Well.. there are no C++ gurus, then.
 
sbi
@JohannesSchaublitb Got it now?
 
8:29 PM
@FredOverflow Well, it can require more resizes than needed (which is, one).
 
sbi
@Guillaume07 Nobody masters all of C++, and I doubt anyone ever will. So according to this definition there is no C++ guru.
 
"sufficiently advanced"
 
sbi
@RMartinhoFernandes Of course, you had to wait 2mins to post that. Bastard!
 
@RMartinhoFernandes And it can perform unnecessary copying when those resizes happen.
 
sbi
8:31 PM
BTW, did I miss this?
sitesNamedStackOverflowThatImAModeratorOf++
Is he a mod now?
 
On PSE (elections were going on recently)?
 
sbi
@RMartinhoFernandes "sitesNamedStackOverflow"
 
Time to play victory music!
 
Xeo
@sbi Eww, post-increment.
 
@sbi He forgot his semi-colon.
 
sbi
8:32 PM
Eww, camel-case!
2
 
@sbi Oh. Well, he seems to be a moderator.
 
sbi
Ah, I think I understand. Anna became a SE employee and had to step down — maybe he was second in line in the last election?
 
what's wrong with camel-case?
 
4
Q: Should horribly wrong answers be deleted?

Adam RackisConsider this answer, which is about to be deleted, and the one below it (non 10K below). The former showed up in the 10K queue, flagged as "low quality". Should either this answer, or the one below it qualify as such? They seem like real answers to me, just horribly, horribly wrong. Shouldn...

 
@sbi Why did you write camelCase in lisp-train-case?
 
8:35 PM
@awoodland Wtf? :L One guy started talking about assembly?
 
sbi
@RMartinhoFernandes Because I resent camel-case!
 
@KianMayne The question mentioned assembly.
 
@RMartinhoFernandes Ahh makes more sense now
 
@sbi But... you can't write the names of cases in a different case! Doing that... I don't know, it could collapse the entire Universe or something.
 
sbi
@Abyx It's ugly. Also, I used to like it, but got converted. And you know that converts are the worst kind of zealots.
@RMartinhoFernandes I just looked out the window and it seems the universe is still there.
 
8:38 PM
@sbi: ok some guys here seems to really well understand c++ under the hood by the way, lot of time spent on it I guess :)
 
Any tips on understanding lower level languages? Are they, by definition, just more difficult? Just they're definitely my weaker point
 
@sbi Yes, but it may disappear at any moment! It's like UB! Don't do it.
 
@KianMayne assembly is not difficult
 
@KianMayne Some people seem to consider Haskell difficult and it is far from being low-level.
 
8:39 PM
@JohannesSchaublitb oh cool, using is_same... Nice :D
 
sbi
@RMartinhoFernandes You know how many people have googled "google"?! And the Internet is still there. Don't believe in those old wives' tales.
 
Xeo
using P = [](double)->void; // using plus suffix return type
 
sbi
Just got Lippert'd on #stackoverflow. There should really a badge for that :)
 
@KianMayne Lower level languages are easier to learn, because there are less language features to learn. Lower languages are harder to learn, because initially you have no idea how to put the small number of features together to actually achieve something useful. The extreme is assembly language. I can probably teach you the syntax and semantics of a RISC assembly language in one or two hours, but it will take weeks or even months before you can write anything useful.
 
user142019
Really, I hate JSON APIs that escape HTML.
 
Xeo
8:40 PM
I just found this in Bjarne's C++11 FAQ.. is there something I don't know?
 
user142019
 
@sbi And how many people have dereferenced pointers to local variables on scopes that are gone? Did the Universe go away? Not yet, but it can happen!
 
Xeo
15
A: Casting null doesn't compile

JaredParThe problem is not the casting of null, it's that object isn't assignable to string. This works fine string x = (string)null; The reason this works if you remove the cast (string x = null) is laid out in section 2.4.4.6 of the C# Language Specification The null-literal can be implicitly c...

 
@Xeo Maybe it's outdated? That doesn't seem valid to me.
 
@Xeo it's incomplete somewhere, but there are some good examples, e.g. for unions
 
8:42 PM
@DeadMG How do you call a pet that's living in your car?
 
user142019
Low level languages aren't per definition difficult.
 
user142019
They are just low level.
 
Maybe I'm missing something, but how is using P = [](double)->void; related to unions?
 
sbi
To be Lippert'd: Providing an ans on #stackoverflow getting 10+ votes and then having Eric Lippert come along and trounce you.
 
what?
 
8:43 PM
@RMartinhoFernandes I don't think C++ is powerful enough yet to take influence on the future of the Universe.
 
@FredOverflow Yeah, it's proposed for C++2x
 
@JohannesSchaublitb > image not found
 
Xeo
2 * 2 + 2 / 2 - 2?
 
@JohannesSchaublitb OMG, I can answer that!
And I don't know German beyond the numbers.
 
8:44 PM
me too
 
@RMartinhoFernandes obviously vier
 
Xeo
42. aka DB
 
next version of c++ is planed to be released in how many times, no expectation at the moment ?
 
(I only know one german word, and it's not socially acceptable)
 
@MooingDuck It's drei!
 
Xeo
8:45 PM
@MooingDuck "Scheiße"?
 
as if we care about that in here
 
I really like some stuffs like module
 
it's drei
 
What is the audience made of? Two year olds?
Foreigners?
 
@Guillaume07 we can extrapolate roughly 2024 (plus or minus lots)
 
8:46 PM
@Duck lol
@Duck painful
 
@MooingDuck It's C++1y, so obviously not on this decade.
 
C++0x1y
 
@Guillaume07 C++98 and C++11 were 13 years apart. 2011+13=2024. Of course, the release before C++98 had less duration, but theoretically they should also come less and less frequently, so...
 
@RMartinhoFernandes They obviously didn't take operator precedence into account.
 
@MooingDuck The Standard before 11 was 03
 
8:48 PM
@DUke so sick
 
@DeadMG shows what I know
so... 2019 then, assuming linear releases
 
@MooingDuck Er, 2003 - 1998 = 5. 2011 + 5 = 2016.
And then 2024.
 
always amazes me how a little sleep can solve any programming problem...
 
Xeo
@FredOverflow No wonder we as C++ coders do, since we get bitten by it all the time, no matter the operator.
 
@RMartinhoFernandes 2011-2003 = 7, 2011 + 7 = 2019. Of course 2003-1998 =5, so we could also guess next release is 9 years out (geometric growth) and guess 2020.
 
8:51 PM
was debugging crap last night for hours... ...within 5 minutes of waking up: fixed
 
Xeo
@MooingDuck So, 7 == 8 in your numerical system?
 
@Xeo I can't math
 
Fail.
@Xeo I don't remember the last time operator precedence bit me.
 
@Xeo that's why I became a programmer. It does the math for me
 
8:52 PM
Those that I know, I know. Those that I don't know, I put parentheses (i.e., I know I don't know).
 
@MooingDuck sure you can, ur just a lazy bitch ;)
 
@Nils evidence shows otherwise
 
Xeo
1
Q: How to do deep copy by overloaded assignment operator of subclass of std::vector<T>?

Sorush RabieeI have a class Step derived from std::vector<unsigned int>. I need to overload assignment operator because of the deep copy used in assignment of a value returned from a static method. I can't figur out how should I copy all elements of rhv to this in assignment: class Step : public std::v...

/sigh
 
@MooingDuck a lazy bitch when it comes to mental math
 
8:55 PM
@Nils see my post 2 minutes ago where I did 2011 + 7 = 2019.
 
heh :D
 
I'm lazy, but I can't help that my brain will automatically set out to do math by itself when it can.
 
@MooingDuck I read it correctly
 
Evil pointers strike again.
1
Q: Pointer on vector of vector and iterator

GuillaumeI have a vector of vector of my object and I get a pointer of this vector. My problem is I can't create an iterator with that. This my code : vector<vector<AbstractBlock*>> *vectorMap = _level->getMap()->getVectorMap(); for(vector<AbstractBlock*>::iterator i = vectorMap[...

> Wow, a question that is legitimately tagged both c and c++. A rare appearance... – ildjarn 3 mins ago
 
Xeo
@RMartinhoFernandes The "C++" API mentioned in that question is nuts.
 
9:09 PM
"C++" indeed
 
I hate it there seems to be no channel with competent iOS programmers :(
 
@rubenvb first i used "is_same<void(T), void(T*)>" but that doesn't work for "void()const"
 
that's because "competent iOS programmer" is an oxymoron :P
 
user142019
I'm currently writing an iOS app, but I can't say I'm a competent programmer.
 
@RMartinhoFernandes and what's funny is he didn't know it and asked the public xD
 
9:15 PM
@Nils Oh, you.
 
Well If I draw with core graphics using for example CGContextFillRect(ctx, innerRect) then it seems that the alpha channel from the color set before using CGContextSetFillColorWithColor(ctx, [Colors color:@"black"]); is ignored. So for example light gray from UIColor turns into black.
Worked around this by using CGContextSetAlpha(ctx, 0.2).
brb
 
user142019
aaah Xcode sucks.
 
Nah, Xcode is great. Especially Xcode 4.
Except that it has a tendency to eat a lot of CPU.
 
user142019
Xcode doesn't work well with Git.
 
What? By default, Xcode 4 creates a local Git repo when you create a new project.
 
user142019
9:19 PM
I didn't select that option three hours ago and I want to create a local repo now.
 
user142019
But Xcode won't let me.
 
Can't you just do a git init in your project's directory?
 
user142019
Just did that, but it doesn't show up in the organizer. Any ideas?
 
@RMartinhoFernandes Do you still have that ::type::type::type collapse thing? I bookmarked it but the link expired.
 
@WTP But looks like you have to close the project and then open it.
 
user142019
9:25 PM
I simply copied the project to my desktop, went to organizer and selected "checkout or clone repo"
 
user142019
Now it works. Thanks for the help!
 
@EtiennedeMartel Well here it crashes and has some strange bugs. Otherwise it is ok.
 
Is it bad form to use class constructors as functions as a way to "partially specialize" functions? The usage syntax just seems more function-like than Functors. ideone.com/BcgaI
 
yes
 
it's also nice that they take no space, as opposed to functors
 
9:37 PM
what, sizeof(T) == 0?
 
The functor has a size, but doesn't need to be stored ever
 
but you do store it
T result;
 
int output = function<int, 3>(input); used exactly like a function, and there's no functor object anywhere after the expression finishes.
 
Xeo
@MooingDuck Good luck with overloading.
 
@Xeo ah, yes. Good point, only specializations. I have partial specializations and SFINAE, I bet it could be faked.
 
Ell
9:40 PM
when it says function x could not be resolved, does that mean function x isnt declared in the current scope? or defined?
 
Xeo
@MooingDuck Yeah, but it's tedious
 
@MooingDuck So what? If I create and call a functor inline, the same result occurs
 
Xeo
I prefer my version of partial specialization of a function template.
@DeadMG But two keystrokes!
 
but with less than 1billion copies of T
 
@DeadMG fair point
 
Xeo
9:42 PM
@Ell Which compiler? And exact error message please.
4
A: terminating function template recursion

XeoHere's one without a specific helper struct: #include <iostream> #include <tuple> template<std::size_t> struct int2type{}; template<class Tuple, std::size_t I> void print_imp(Tuple const& t, int2type<I>){ print_imp(t, int2type<I-1>()); std::cout <...

@MooingDuck w.r.t partial spec of function templates :)
 
Why am I getting this?
test.cpp:43:8: error: template parameters not used in partial specialization:
test.cpp:43:8: error:         ‘T’
 
Ell
"Function 'Close' could not be resolved" from mingw(tdm-1) 4.6.1 on windows 7 x64
 
user142019
Because the template parameter T isn't used in the partial specialization.
 
@Xeo oh, brilliant! BUt couldn't you have used std::integral_constant<>?
 
But it is: struct fun2<ev<T>>
 
Ell
9:44 PM
I just can't get wxwidgets to work at all - I have been trying for days! Maybe I just have to switch to the microsoft one :'( mvc or whatever its called o.O
 
user142019
If it were, the compiler won't say it doesn't.
 
@Pubby Non-deducible context?
 
@DeadMG What do you mean?
 
Xeo
@MooingDuck Yeah, but I like my int2type more :P
 
@Pubby nm, I'm being dumb
 
Xeo
9:45 PM
@Pubby Full code please..
 
Ell
hmm... the samples appear to build
 
I think I'll just write a SO question
 
user142019
As long as you post a link to it here it's OK. :p
 
Xeo
Just paste the code here, I'm at my repcap already
:|
 
You might not solve it :(
 
Xeo
9:47 PM
Well, I'm not the only one here.
 
user142019
Posting the code here won't harm anyone, even if nobody is able to help.
 
@Ell google search says you are including the headers, but the linker can't find the functions
 
Ell
@MooingDuck yes... I think I just need to link with a load of libraries. I must keep googling, I will get there eventually!
 
0
Q: Specialize template based on nested inner arguments

PubbyI want to specialize templates based on their inner arguments. I am using non-strict evaluation which makes things difficult. The specializations should be based off of the least nested pattern match. For instance: template<typename T> struct data1; template<typename T> struct fun1...

That is my actual question, the error I was getting was my attempt at solving it
 
user142019
10:03 PM
fun2<typename fun1<int>::type>::type x3; makes it compile slightly better.
 
It has to be non-strict though
 
Xeo
@Pubby Meaning?
 
I can't evaluate things unless they are used
 
user142019
I managed to compile it with a lot of modifications but it might not be what you want.
 
user142019
gist.github.com/1679098 it doesn't compile on Ideone, but it does with clang 3.0.
 
10:08 PM
@WTP That is the specialization I want, although it evaluates the arguments
Actually, that might work. I could have 2 arguments, one to determine specialization, one for evaluation
 
Ell
yihaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Xeo
No evaluation, ever :D
You might want to replace : fun2<T> with : fun2<typename X<T>::type>
@Pubby: Tell me if I got someting wrong
 
@Xeo Ok, taking a look
 
Xeo
I replaced the aliases with typedefs so GCC compiles it
 
@Xeo Wait, fun2 can't have non-specialized definition
 
Xeo
10:17 PM
@Pubby Well, you can actually remove that.
 
I get errors when I do that
 
Xeo
Did you maybe remove the wrong one? Like, the partial spec?
 
That ideone code doesn't work for me
 
Xeo
Ah, did you maybe test that with my first version?
It should. Which compiler are you using?
 
test.cpp:41:28: error: ‘type’ is not a member of ‘fun2<fun1<int> >’
gcc version 4.7.0 20111203 (experimental) (GCC)
 
Xeo
10:20 PM
Paste to ideone, I wanna check that
 
Xeo
But it indeed does seem you used the : fun2<T> version
use the second version
lol
okay, strange
Compiles fine for Clang 3.1 and GCC 4.5.1
 
Oh, second version does work
 
Xeo
Yeah, just inheriting from fun2<T> was an error, since fun2<fun1<int>> will try to inherit from fun2<int>, which is non-existent
 
You going to post that as an answer?
 
Xeo
10:23 PM
Sure, I just wanted to check that this is indeed what you intended.
 
Well, I should probably check it more :P
 
Xeo
I'll just post it now, tell me if something went wrong :P
 
Ok
 
Xeo
But I still don't get what you mean with "non-strict". Not using typename ...::type in the fun2 variable declaration?
 
Yeah, build up the template before evaluating it
 
Xeo
10:29 PM
mm, my code doesn't really do that either, it recursively evaluates ::type during instantiation, and not when you use fun2<...>::type
 
Accepted it. Strict pattern matching should be fine as AFAIK that's what Haskell does
 
ok
Dreamweaver is annoying
maybe I should use Visual Studio and just not use any ASP.NET features to build a static site
 
Xeo
@Pubby No upvote? :( [not that I'd need it, I'm at repcap anyways]
 
Fine, have an upvote
 
@Pubby "Here, Cheat, have a trophy!"
 
10:47 PM
Hey guys, quick question (fuel for an argument): How much would a newly employed programmer earn (salary)?
Preferably in GBP
 
@KianMayne in USA, ~40000USD/yr (Google says thats 25567GBP/yr, but that's for working in America, so not helpful to you)
Is there a way in MSVC10 to get the maximum value for an arbitrary number type (might be a class) as a compile time constant?
 
oh hai
 
@MooingDuck No, of course not.
 
Xeo
@MooingDuck nope
 
@DeadMG I did ASP.NET dev for a while, I found annoying at best
 
10:50 PM
what if you pass max_value<ArbitrarySizeInteger>?
there's no way the compiler could possibly know the max value for any type which isn't a primitive type
 
Xeo
@MooingDuck In C++11, you could. std::numeric_limits<num_type>::max() - max is a constexpr function in C++11
 
@TonyTheLion I'd love to use ASP.NET but had difficulties locating a competent host
 
Xeo
Oh, wait, also things like BigNum classes?
 
@Xeo I'm aware of that, but I work primarily with MSVC10, so...
 
Xeo
Then the answer is no.
 
10:52 PM
@Xeo theoretically they should specialize/overload std::numeric_limits right?
 
Xeo
Or maybe with boost
 
@DeadMG I never have problems with mine
 
@MooingDuck No. As I said, for an arbitrary size integer, there is no such thing as the maximum size.
 
Xeo
@MooingDuck Theoretically they could provide an explicit specialization, yeah
 
@TonyTheLion Which host are you on?
 
10:52 PM
@DeadMG oh right, didn't think of that. I guess I'm excluding arbitrary precision then.
 
@DeadMG actually I know a guy who does hosting.
 
does he have a public business?
 
I found ways to make MSVC10 calculate the max value as a compile time constant, but I get lots of warnings about integeral constant overflow in compile time math. And specifying a type for an enum.
 
@DeadMG one of my domains is hosted with discountasp.net, which I've never had problems with. Even their support is pretty good, and they're fast
 
ok
 
10:57 PM
seems the guy that does hosting, only does it for people he makes websites for
he made my personal site, that's why my personal is hosted there
yes, I suck at making websites :(
 

« first day (466 days earlier)      last day (4482 days later) »