Lounge<C++>

Today we're daydreaming about C++26 reflection
Oct 12, 2019 04:38
2
Q: How to implement universal switch/case, which can work for general C++ types as well and syntactically similar?

iammilindIn C/C++, switch/case compares only an integral type with a compile time constants. It's not possible to use them to compare user/library defined types like std::string with runtime values. Why the switch statement cannot be applied on strings? Can we implement look-a-like switch/case which giv...

Oct 12, 2019 04:37
Off topic, but if anyone is interested to use code for universal switch/case, I have posted here:
Feb 18, 2015 09:18
@BartekBanachewicz, thanks!
Feb 18, 2015 09:13
@BartekBanachewicz, sure. C# can be a good choice and would be feasible. Just last question. Does C++ make any difference over C#/Java when it comes to server performance? (I heard that the network latency is usually high enough to discard such minimal differences between C++, C#, Java)
Feb 18, 2015 09:09
@FredOverflow, I had referred that link earlier. Thanks anyways.
Feb 18, 2015 09:08
@BartekBanachewicz, ok then I might be wrong. I heard some people speaking "F" word. So I blindly assumed US. Sorry
Feb 18, 2015 09:06
@AMostMajestuousCapybara, thanks
Feb 18, 2015 09:06
@FredOverflow, I know but I thought may be Lounge might be free for a while as it would be night in US :)
Feb 18, 2015 09:05
@райтфолд, I have a choice in C++/Java/C#
@Fre
Feb 18, 2015 09:03
@All Hi,

Sorry, if I interrupt in this ongoing conversation.

I am coming to Lounge for help on server programming. After getting my question closed on SO and subsequently programmers:
http://programmers.stackexchange.com/questions/273587/which-are-the-general-choices-for-server-programming

Any idea which framework should I use for C++?
May 10, 2013 11:19
6
A: Does C++ support compile-time counters?

iammilindI was thinking to solve this problem for quite sometime, and have come up with a very short-clean solution. At least I deserve one upvote to try this out. :)) Following library code achieves namespace level functionality. i.e. I am successful to implement counter_read and counter_inc; but not th...

May 10, 2013 11:17
@R.MartinhoFernandes, that's not deterministic as multiple files can have same __LINE__. I have started using C++11 recently, so thought of using __COUNTER__. There is one template hack where we can generate unique numbers, I myself had answered that in of the questions. But that was only upto 512.
May 10, 2013 11:15
@jalf, actually I want is a unique number, which can be further used in the switch case; so it must have to be compile time constant number;
May 10, 2013 11:13
@R.MartinhoFernandes, ok. Wanted to create a compile time unique number, will search for that as well before going with __COUNTER__
May 10, 2013 11:09
@TonyTheLion, Thanks. Which means we cannot use it in standard conforming code. I had seen that question before the chat. It's old and doesn't have any reference to c++11
May 10, 2013 11:06
ok, same SO trick works here as well
May 10, 2013 11:06
__COUNTER__ ..
May 10, 2013 11:05
yes
May 10, 2013 11:04
somehow underscores are gone .. assume 2 underscores before/after the COUNTER
May 10, 2013 11:04
"COUNTER"
May 10, 2013 11:04
Hello Everyone, a quick question: Is COUNTER part of C++11 standard? (till now it was an MSVS & GCC extension)
May 20, 2012 13:43
I am actually work on a VNC server and I can't copy paste from it
May 20, 2012 13:42
I will try to dig something more and will comeback if something more specific to ask
May 20, 2012 13:42
anyways .. thanks for your time :)
May 20, 2012 13:42
@CharlesBailey, I am sorry that "make -n -B" are not being helpful because they don't show apart from some "if"s
May 20, 2012 13:41
any good link ?
May 20, 2012 13:41
ya :) I tried some simple tutorials .. but couldn't get why my changes don't take affect in common.mak
May 20, 2012 13:40
don't know why
May 20, 2012 13:40
even I tried removing common.mak itself .. but compilation always goes as usual
May 20, 2012 13:40
@Pubby, dependencies means ?
May 20, 2012 13:39
@CharlesBailey, i tried , but no luck
May 20, 2012 13:37
the thing is the common.mak is mentioned in all other .mak files
May 20, 2012 13:37
I also tried removing @
May 20, 2012 13:37
everything is fine ... but the problem is that even if I edit something in common.mak .. nothing shows up while compilation
May 20, 2012 13:36
yes ... it doesn't show anything :(
May 20, 2012 13:34
so when I give make, it only displays "compiling x.cpp" ... but I want to see the full options
May 20, 2012 13:34
%.d.o: %.cpp
@ "echo compiling" $<
@ $(CPP_COMPILER) $(CC_DEBUG_FLAG) -o $@ $<
May 20, 2012 13:32
at presently it show like this:
May 20, 2012 13:31
I simply want to see that what options are mentioned
May 20, 2012 13:31
it would show g++ -I ... -D...
May 20, 2012 13:31
Is there a way that I can edit the common.mak and when compile it again then instead of simple compiling
May 20, 2012 13:30
umm .. I am still not getting anything helpful
May 20, 2012 13:29
I tried "make -n <common.mak>" and it says no target to build
May 20, 2012 13:29
@CharlesBailey, I am sorry I din't understand exactly
 

SOBotics

This room is dedicated to moderating content on Stack Overflow...
Jun 8, 2016 13:51
@PetterFriberg. Thanks. I will look into it.
Jun 8, 2016 13:34
@PetterFriberg. Sorry for the late reply. I wouldn't be able to take up this responsibility very actively as my main area is limited to C++. Also I am not a frequent visitor now a days. However suppose if you add me, then will I be able to opt out later, if I don't fulfil the duty?
Jun 8, 2016 13:15
If above message is for me, then yes I do know about this community. Through 1 fellow. It's more about cleanup like dupes.
Jun 8, 2016 13:12
@PetterFriberg hello
 

Web Developers

Room to discuss javascript and jquery, php and mysql issues. b...
Feb 22, 2014 05:22
Is the software skill package such as LAMP (Linux Apache MySQL PHP) enough for the same.
Sorry, if this question is too novice. But I felt that this may not fit the SO questions correctly.
Feb 22, 2014 05:18
Hi All, I am usually a C++ contributor. Right now, I want to develop a software for web portal like worksnaps.com. In nutshell, a local clients run on the computer and logs the activities like keystrokes, mouse, screenshots to some server and the same can be accessed online.


My question is what kind of skilled I should hire for the same? I am not going to learn myself. oDesk.com and elance.com are other examples