e:
>>> 7: b defaultVal;
>>> 8: public:
>>> 9: std::map mymap;
>>> 10: const b &func(a idx)
>>> 11: {
>>> 12: std::map::iterator it=mymap.find(a);
>>> 13: if (it!=mymap
On Wed, Aug 25, 2010 at 1:53 PM, Oleg Goldshmidt wrote:
> 2010/8/25 Erez D :
> >
> >
> > On Wed, Aug 25, 2010 at 12:08 PM, Elazar Leibovich
> > wrote:
> >>
> >> template
> >>
> >> class c
> >>
> >> {
> >>
> >> private:
> >>
> >> b defaultVal;
> >>
> >> public:
> >>
> >
2010/8/25 Erez D :
>
>
> On Wed, Aug 25, 2010 at 12:08 PM, Elazar Leibovich
> wrote:
>>
>> template
>>
>> class c
>>
>> {
>>
>> private:
>>
>> b defaultVal;
>>
>> public:
>>
>> std::map mymap;
>>
>>
>> const b &func(a idx)
>>
>> {
>>
>>
The following works at least in g++ 4.4.4:
#include
template
class c {
private:
b defaultVal;
public:
std::map mymap;
const b &func(a idx)
{
*auto* it=mymap.find(idx);
if (it!=mymap.end())
return it->second;
std::map::iterator it=mymap.find(a);
>> 13: if (it!=mymap.end())
>> 14: return it->second;
>> 15: else
>> 16: return defaultVal;
>> 17: }
>>
ind(a);
> 13: if (it!=mymap.end())
> 14: return it->second;
> 15: else
> 16: return defaultVal;
> 17: }
> 18:};
> ...
> ...
>
> compiling it (under cygwin) , i get the f
;
13: if (it!=mymap.end())
14: return it->second;
15: else
16: return defaultVal;
17: }
18:};
...
...
compiling it (under cygwin) , i get the following:
$ g++ -c -o kaka.o kaka.cpp
kaka.
Avraham
Cc: ILUG
Subject: Re: [YBA] g++ newbie: No warn on missing method implementation?
Jonathan Ben Avraham wrote:
Hi Shachar,
Right, right.
I also think that the VS2008 is doing something "extra".
My problem is that I have a class with 70+ methods and the cust
Jonathan Ben Avraham wrote:
Hi Shachar,
Right, right.
I also think that the VS2008 is doing something "extra".
My problem is that I have a class with 70+ methods and the customer
keeps changing the specs. I need some way to verify that all of the
methods declared in the class have implementati
2010/7/13 Jonathan Ben Avraham :
> Hi Shachar,
> Right, right.
> I also think that the VS2008 is doing something "extra".
>
> My problem is that I have a class with 70+ methods and the customer keeps
> changing the specs. I need some way to verify that all of the methods
> declared in the class hav
On Tue, Jul 13, 2010 at 11:31 AM, Jonathan Ben Avraham wrote:
> Dear linux-il list,
> g++ seems to be quite happy to compile and link a program that has a class
> that includes method declarations that are not implemented, as log as those
> methods are not called explicitly in the
ue, 13 Jul 2010, Shachar Shemesh wrote:
Date: Tue, 13 Jul 2010 11:59:43 +0300
From: Shachar Shemesh
To: Jonathan Ben Avraham
Cc: ILUG
Subject: Re: [YBA] g++ newbie: No warn on missing method implementation?
Jonathan Ben Avraham wrote:
Dear linux-il list,
g++ seems to be quite happy
Jonathan Ben Avraham wrote:
Dear linux-il list,
g++ seems to be quite happy to compile and link a program that has a
class that includes method declarations that are not implemented, as
log as those methods are not called explicitly in the code. VS2008
seems to be able to discover this
Dear linux-il list,
g++ seems to be quite happy to compile and link a program that has a class
that includes method declarations that are not implemented, as log as
those methods are not called explicitly in the code. VS2008 seems to be
able to discover this, either at compile or link time
On Mon, 26 Feb 2007, Baruch Even wrote:
These days on Debian it's as simple as apt-get install g++-4.1
As you were told already, you can have multiple versions of gcc/g++
installed with ease.
You are (wrongly) assuming that this can be done from woody -> etch. Not
so. There are othe
* Peter <[EMAIL PROTECTED]> [070226 16:14]:
>
> On Mon, 26 Feb 2007, Vassilii Khachaturov wrote:
>
> >>I have a compilation problem: when compiling opal-2.2.5 , g++ reports:
> >>'g++: Internal error: Killed (program cc1plus)'. g++ is 'g++ (GCC
On Mon, 26 Feb 2007, Peter wrote:
Date: Mon, 26 Feb 2007 16:03:10 +0200 (IST)
From: Peter <[EMAIL PROTECTED]>
To: Vassilii Khachaturov <[EMAIL PROTECTED]>
Cc: IGLU <[EMAIL PROTECTED]>
Subject: Re: g++ compilation problem
On Mon, 26 Feb 2007, Vassilii Khachaturov wrote:
I
gt; only use 4.x.x as a non-default one by setting CC=... accordingly in the
> > env.
>
> The last time I updated the compiler alone it was like being reborn aout
> 3 times. I would PREFER not to do that. And g++ says to file a bug
> report, not upgrade.
BTW, have you read through the g
On Mon, 26 Feb 2007, Vassilii Khachaturov wrote:
I have a compilation problem: when compiling opal-2.2.5 , g++ reports:
'g++: Internal error: Killed (program cc1plus)'. g++ is 'g++ (GCC) 3.3.6
(Debian 1:3.3.6-8)'. I would like to solve this without updating g++.
I su
On Mon, 26 Feb 2007, Peter wrote:
>
> Hi all,
>
> I have a compilation problem: when compiling opal-2.2.5 , g++ reports:
> 'g++: Internal error: Killed (program cc1plus)'. g++ is 'g++ (GCC) 3.3.6
> (Debian 1:3.3.6-8)'. I would like to solve this without u
Hi all,
I have a compilation problem: when compiling opal-2.2.5 , g++ reports:
'g++: Internal error: Killed (program cc1plus)'. g++ is 'g++ (GCC) 3.3.6
(Debian 1:3.3.6-8)'. I would like to solve this without updating g
On Thu, Jul 13, 2006 at 01:20:00PM +0300, Rafi Gordon wrote:
> Hello,
> - g.729 ia an audio codec which is used a lot in telephony apps.
>
> Maybe somebody knows a free player for g.729 files in linux ?
> googling did not helped me to find.
If you happen to have an Asteris
Rafi Gordon wrote:
Hello,
- g.729 ia an audio codec which is used a lot in telephony apps.
Maybe somebody knows a free player for g.729 files in linux ?
G.729 is not a royalty-free codec and most free applications would
therefore avoid supporting it. That's why there are no free
Most of the G.729 codecs implementations are on hardware, and it's
realy rare to find a software implementaion, specially on Linux.
Thanks,
Hetz
On 7/13/06, Rafi Gordon <[EMAIL PROTECTED]> wrote:
Hello,
- g.729 ia an audio codec which is used a lot in telephony apps.
Maybe someb
Hello,
- g.729 ia an audio codec which is used a lot in telephony apps.
Maybe somebody knows a free player for g.729 files in linux ?
googling did not helped me to find.
TIA,
RG
=
To unsubscribe, send mail to [EMAIL PROTECTED
On Tue, 23 Mar 2004, Mark Veltzer wrote:
> Date: Tue, 23 Mar 2004 18:13:04 +0200
> From: Mark Veltzer <[EMAIL PROTECTED]>
> To: Alexander V. Karelin <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Subject: Re: gcc (g++ v3.2.2) trouble
>
> On Tuesday 23 March 2004 18:06, yo
On Tue, Mar 23, 2004 at 06:06:28PM +0200, Alexander V. Karelin wrote:
> when linking code compiled with g++ 3.2.2 with a library that has been
> compiled with gcc 2.x.x, the linker fails finding references.
There is no C++ binary ABI between gcc 2.xx releases and gcc 3.xx
releases. In
On Tuesday 23 March 2004 18:06, you wrote:
> Dear List!
>
> I've encountered a rather unpleasant problem. In a nutshell it is like
> this:
>
> when linking code compiled with g++ 3.2.2 with a library that has been
> compiled with gcc 2.x.x, the linker fails finding
Dear List!
I've encountered a rather unpleasant problem. In a nutshell it is like
this:
when linking code compiled with g++ 3.2.2 with a library that has been
compiled with gcc 2.x.x, the linker fails finding references.
Now... The problem is that the library in question, if compiled
Hi,
I compile some small c++ file with mysql library.
the file works great, but the cgi is BIG over 200K
How can i make it a little small like 10-20K ?
(gcc make a smaller cgi files with mysql library)
The compile line is:
g++ file_name.cpp -o
file_name.cgi -I/usr/include/mysql -L/usr/lib
On Sat, Feb 24, 2001 at 03:19:46AM +0200, Avi Boots wrote:
> Hi,
>
> Aftert installing cpp & gcc-c++ 2.95.1 (on RH 6.1)
> i have some install problems (i think).
>
> I try to compile something simple and the compiler say:
> -can't find /usr/include/typws.h:29:stddef.h: No such file or director
>
Hi,
Aftert installing cpp & gcc-c++ 2.95.1 (on RH 6.1)
i have some install problems (i think).
I try to compile something simple and the compiler say:
-can't find /usr/include/typws.h:29:stddef.h: No such file or director
-/usr/include/_G_config.h:14:stddef.h No such file or director
-/usr/inclu
Avi Boots wrote:
> Hi,
>
> 1. Which RPM include the g++ cpp compiler ?
[gby@specialk gby]$ rpm -qf /usr/bin/g++
egcs-c++-1.1.2-24
[gby@specialk gby]$ cat /etc/redhat-release
Red Hat Linux release 6.1 (Cartman)
> 2. Is it better to use c++ instead of c for cgi programming ?
I
On Tue, Feb 20, 2001, Hetz Ben Hamo wrote about "Re: g++":
> Hi,
>
> > 1. Which RPM include the g++ cpp compiler ?
>
> [kde21@moomoo kde21]$ rpm -q --whatprovides /usr/bin/g++
> gcc-c++-2.96-69
>
> (this is the GCC updated on my RH 7)
You'll usually
Hi,
> 1. Which RPM include the g++ cpp compiler ?
[kde21@moomoo kde21]$ rpm -q --whatprovides /usr/bin/g++
gcc-c++-2.96-69
(this is the GCC updated on my RH 7)
> 2. Is it better to use c++ instead of c for cgi programming ?
It all depends on your taste of programming. You can do it wit
Hi,
1. Which RPM include the g++ cpp compiler ?
2. Is it better to use c++ instead of c for cgi programming ?
Thank You
Avi.
=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message
On Thu, Nov 09, 2000 at 10:51:09AM +0200, Ishai Parasol wrote:
> Is there a way to print the contents of the xterm (and its similair
> terminas), including the command lines, the prompts, the commands / file
> names and ofcourse the output ?
Try left-clicking inside the xterm window while holdin
Can the script command be of any use?
It does have its drawbacks: One has to run and exit it before he can have the
logs, get all the escape characters with their attached actions.
>
> Hi
>
> Is there a way to print the contents of the xterm (and its similair
> terminas), including the comman
Hi
On Thu, 9 Nov 2000, Ishai Parasol wrote:
> Is there a way to print the contents of the xterm (and its similair
> terminas), including the command lines, the prompts, the commands / file
> names and ofcourse the output ?
I can't think of a better way than marking the text you want to print,
p
Hi
Is there a way to print the contents of the xterm (and its similair
terminas), including the command lines, the prompts, the commands / file
names and ofcourse the output ?
TIA,
Ishai.
=
To unsubscribe, send mail to [EMAIL P
Regarding my last message:
June 3 has to be substituted with June 2. (June 3 is Saturday.)
--
-- Shaul Karl <[EMAIL PROTECTED]>
=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the
%Hello
all % %After compiling some simple c program linking it and getting the
%executable file, I tried to execute the program. It was not possible to
%run it , no matter which combinations or names did I tried.
%(The same files exactliy ran perfectly on the technions t2 Unix.) Any
%Ideas?
%
%
Hello all
After compiling some simple c program linking it and getting the
executable file, I tried to execute the program. It was not possible to
run it , no matter which combinations or names did I tried.
(The same files exactliy ran perfectly on the technions t2 Unix.) Any
Ideas?
Thanks
Dedy
43 matches
Mail list logo