Monday, February 8, 2010

comp.lang.c++ - 22 new messages in 11 topics - digest

comp.lang.c++
http://groups.google.com/group/comp.lang.c++?hl=en

comp.lang.c++@googlegroups.com

Today's topics:

* This one seem silent on this too - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/0bb66ac02fab6d19?hl=en
* Incomplete types and std::vector - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/b0741c38fc15b5f7?hl=en
* Motivation of software professionals - 7 messages, 5 authors
http://groups.google.com/group/comp.lang.c++/t/21a3fdec4dd53e6a?hl=en
* C++ and shared objects - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/c0dc99feb20c6b5f?hl=en
* vector of Repository* - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/7f611d39b3355ccd?hl=en
* Rolex Watch wholesale (paypal payment) (www.globlepurchase.com) - 1 messages,
1 author
http://groups.google.com/group/comp.lang.c++/t/fe2724b8f85d9bbc?hl=en
* int (*&)() - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/889d2547688e2155?hl=en
* Paypal payment Discount Wholesale/Retail Gucci Shoes GUCCI Boots LV Shoes LV
Boots D&G shoes UGG boots etc BRAND shoes - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/68527c5fea45a8c6?hl=en
* MySQL connector/driver behaviour with Visual C++ CLR/CLI project - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/738ca35dc8623177?hl=en
* Paypal payment Discount Wholesale/Retail LV,Paket,Rolex,Omega,RADO,Armani ,
Hermes,GUCCI ,Chanel,D&G,Burberry etc BRAND watches(www.globlepurchase.com) -
1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/a494775f6e50fff4?hl=en
* C++ Workshop Announcement from the NYLUG and NYLXS Mailing Lists - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/5899d52668535101?hl=en

==============================================================================
TOPIC: This one seem silent on this too
http://groups.google.com/group/comp.lang.c++/t/0bb66ac02fab6d19?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Feb 7 2010 3:29 pm
From: "**Group User**"


On Feb 8, 6:27 am, "**Group User**" <imuaple...@gmail.com> wrote:
> So it seems
will this lesson plzzzz

==============================================================================
TOPIC: Incomplete types and std::vector
http://groups.google.com/group/comp.lang.c++/t/b0741c38fc15b5f7?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, Feb 7 2010 3:29 pm
From: "Alf P. Steinbach"


* James Kanze:
> On Feb 4, 11:07 pm, "Leigh Johnston" <le...@i42.co.uk> wrote:
>>> I've doubtlessly read it, but I'm not convinced. I repeat:
>>> what does std::auto_ptr buy you, compared to a raw pointer?
>
>> std::auto_ptr buys you ownership semantics with RAII (no
>> memory leak if exception is thrown during construction of
>> class owning the pimpl object). The alternative is to write
>> your own version of something similar to std::auto_ptr but why
>> bother? I will use unique_ptr instead when it is available.
>
> Sorry, but that's just false. Whether you use auto_ptr or a raw
> pointer changes absolutely nothing during construction.

I think Leigh is referring to something like

Foo::Foo()
: myImpl( std::auto_ptr<Impl>( new Impl ) )
{
// Statement X that might trow
}

If X throws then statements in ~Foo are not executed.

However, the smart pointer ensures that the Impl instance is deleted.

This avoids doing silly things like

Foo::Foo()
{
std::auto_ptr<Impl> pImpl( new Impl );

myImpl = pImpl.get();
// Statement X that might throw
pImpl.release();
}

or even worse with try-catch.

A main catch is that one is using knowledge of how a std::auto_ptr is usually
implemented in order to create code that will work in practice in spite of
formally Undefined Behavior, which is a bit fragile...

And really, what's used is not std::auto_ptr's ownership transfer semantics, but
just its RAII cleanup.

And so even the simplest of the simplest RAII cleanup class would do as a
well-defined substitute, e.g.

template< typename T >
struct AutoDestroyed
{
T* p;

~AutoDestroyed() { destroy( p ); } // Define 'destroy' per type T.
AutoDestroyed( T* const p_ ): p(p_) {}

AutoDestroyed( AutoDestroyed const& );
AutoDestroyed& operator=( AutoDestroyed const& );
};


>> It is silly saying a <memory> dependency is undesirable.
>
> It's not really a big point, but why add the dependency if it
> doesn't buy you anything.

See above.


Cheers,

- Alf


== 2 of 2 ==
Date: Sun, Feb 7 2010 3:36 pm
From: "Leigh Johnston"


"James Kanze" <james.kanze@gmail.com> wrote in message
news:4db3fe66-d76b-45f1-8924-d70549373c1a@j31g2000yqa.googlegroups.com...
> On Feb 4, 11:07 pm, "Leigh Johnston" <le...@i42.co.uk> wrote:
>> > I've doubtlessly read it, but I'm not convinced. I repeat:
>> > what does std::auto_ptr buy you, compared to a raw pointer?
>
>> std::auto_ptr buys you ownership semantics with RAII (no
>> memory leak if exception is thrown during construction of
>> class owning the pimpl object). The alternative is to write
>> your own version of something similar to std::auto_ptr but why
>> bother? I will use unique_ptr instead when it is available.
>
> Sorry, but that's just false. Whether you use auto_ptr or a raw
> pointer changes absolutely nothing during construction.
>

It is not false, auto_ptr gives you RAII. Assigning to a raw pointer the
result of new in a ctor-initializer list is not using RAII and can leak if
subsequent ctor code throws an exception. Perhaps pimpl is the wrong term
here, it is the method by which you can reduce the number of #includes in
your code:

struct foo;
struct bar;
struct baz;
struct model
{
/* ... */
std::auto_ptr<foo> fooObject;
std::auto_ptr<bar> barObject;
std::auto_ptr<baz> bazObject;
};

We don't want users who #include "model.h" to be forced to include foo.h,
bar.h and baz.h unless they are interested in such objects.

pimpl idiom is a special case of the above using just one object instead of
N objects with a more restrictive header file policy (i.e. pimpl class will
usually only be seen by the TU containing the pimpl parent class).

/Leigh


==============================================================================
TOPIC: Motivation of software professionals
http://groups.google.com/group/comp.lang.c++/t/21a3fdec4dd53e6a?hl=en
==============================================================================

== 1 of 7 ==
Date: Sun, Feb 7 2010 3:33 pm
From: James Kanze


On Feb 5, 12:23 pm, Richard Cornford <Rich...@litotes.demon.co.uk>
wrote:
> On Feb 5, 11:19 am, Stefan Kiryazov wrote:

> > I am doing a research about motivation in software
> > development, the most efficient practices to motivate
> > software engineers, their popularity, etc.

> Strange question; the most efficient motivator of
> professionals is money, and money is very popular.

Yes and no. Obviously, money plays a role---some of us have
expensive habits, like eating regularly, that have to be paid
for. But it has its limits, and I've rarely seen money alone
motivate the best performance (in anything).

--
James Kanze


== 2 of 7 ==
Date: Sun, Feb 7 2010 3:35 pm
From: James Kanze


On Feb 5, 12:39 pm, Anthony Williams <anthony....@gmail.com> wrote:
> Richard Cornford <Rich...@litotes.demon.co.uk> writes:
> > On Feb 5, 11:19 am, Stefan Kiryazov wrote:

> >> I am doing a research about motivation in software
> >> development, the most efficient practices to motivate
> >> software engineers, their popularity, etc.

> > Strange question; the most efficient motivator of
> > professionals is money, and money is very popular.

> Whilst people like money, it's not necessary the most
> efficient motivator. Developers also like interesting,
> challenging, varied work, work with new technologies, flexible
> hours, freedom to do what they feel is technically best
> without being hampered by management dictat and many other
> things.

Amongst other things. Two of the most important motivaters are
peer approval and admiration, and personal satisfaction with the
results.

--
James Kanze


== 3 of 7 ==
Date: Sun, Feb 7 2010 3:43 pm
From: James Kanze


On Feb 5, 3:14 pm, Patricia Shanahan <p...@acm.org> wrote:

[...]
> That said, by definition professionals are, to some extent, in
> it for the money. If they were not, they would be amateurs as
> I am now. How that is balanced against interesting work,
> physical working conditions, status, etc. varies.

I'm not sure if the word "professional" has the same conotations
in English as it does in French, but from the French meaning, I
don't think you can be truely a "professional" if you're only in
it for the money. "Professional" implies being paid for what
you do, but it also implies a certain degree of personal
standards with regards to quality and such---a "professional"
will take pride in his work.

--
James Kanze


== 4 of 7 ==
Date: Sun, Feb 7 2010 4:25 pm
From: "Alf P. Steinbach"


* James Kanze:
> On Feb 5, 12:39 pm, Anthony Williams <anthony....@gmail.com> wrote:
>> Richard Cornford <Rich...@litotes.demon.co.uk> writes:
>>> On Feb 5, 11:19 am, Stefan Kiryazov wrote:
>
>>>> I am doing a research about motivation in software
>>>> development, the most efficient practices to motivate
>>>> software engineers, their popularity, etc.
>
>>> Strange question; the most efficient motivator of
>>> professionals is money, and money is very popular.
>
>> Whilst people like money, it's not necessary the most
>> efficient motivator. Developers also like interesting,
>> challenging, varied work, work with new technologies, flexible
>> hours, freedom to do what they feel is technically best
>> without being hampered by management dictat and many other
>> things.
>
> Amongst other things. Two of the most important motivaters are
> peer approval and admiration, and personal satisfaction with the
> results.

I agree.

But strangely, one thing that motivates me is apparent peer disapproval. For in
many social environments (last week or so there was a damning report about this
kind of environment at the University of Oslo, happily I'm not there) the art of
put-down'ing and dissing is key to personal success. When someone else does
something really good then put-down'ing becomes necessary and the default
response. Thus, when I get critique that has more emotional impact than
technical I concentrate on the technical points. Then, interpreting those more
technical points in a kind of inverse-picture way, I know what's good.

Of course, that's part of the personal satisfaction motivation, but I think it's
interesting that personal satisfaction, knowing that you've created something
good, in some/many environments can be directly incompatible with peer approval.

And for me personal satisfaction weights more.

Peer approval would in most cases just say that I'm conforming, which is not
something that I'd be proud of; it's something I strive to avoid. But in some
cases approval is really nice. E.g., a few times you've stated that I'm pretty
good, or words to that effect, which coming from someone that one respects is
uplifting in a way; likewise, once, many years ago, I had a dispute with one
very well-known C++ expert over in clc++m and wrote some things that I really
shouldn't have, the mod apologized for accepting the article by saying that he
didn't read closely because it was two "C++ experts" discussing things, and that
helped much, otherwise I might have stopped posting... :-)


Cheers,

- Alf


== 5 of 7 ==
Date: Sun, Feb 7 2010 3:44 pm
From: yf110@vtn1.victoria.tc.ca (Malcolm Dew-Jones)


James Kanze (james.kanze@gmail.com) wrote:
: On Feb 5, 3:14 pm, Patricia Shanahan <p...@acm.org> wrote:

: [...]
: > That said, by definition professionals are, to some extent, in
: > it for the money. If they were not, they would be amateurs as
: > I am now. How that is balanced against interesting work,
: > physical working conditions, status, etc. varies.

: I'm not sure if the word "professional" has the same conotations
: in English as it does in French, but from the French meaning, I
: don't think you can be truely a "professional" if you're only in
: it for the money. "Professional" implies being paid for what
: you do, but it also implies a certain degree of personal
: standards with regards to quality and such---a "professional"
: will take pride in his work.

In English also, "professional" implies "a certain degree of personal
standards with regards to quality and such".

As with many words the different facets of its meaning can appear to be
both ambiguous and contradictory, but I think that in the long run being
"professional" in the sense of earning money requires "professional"ism in
behaviour (and vice versa), so ultimately the meaings do not conflict
(even though they can in the short term).

$0.10


== 6 of 7 ==
Date: Sun, Feb 7 2010 6:18 pm
From: Dirk Bruere at NeoPax


MarkusSchaber wrote:
> On 5 Feb., 13:23, Richard Cornford <Rich...@litotes.demon.co.uk>
> wrote:
>> On Feb 5, 11:19 am, Stefan Kiryazov wrote:
>>
>>> Hi all,
>>> I am doing a research about motivation in software development,
>>> the most efficient practices to motivate software engineers,
>>> their popularity, etc.
>> Strange question; the most efficient motivator of professionals is
>> money, [...]
>
> This was proven wrong by Science. Read Bruce Eckels excellent blog
> entries about this topic, he always references relliable sources on
> this subject.

Depends.
Right now I am primarily motivated by money, or at least the lack of it.

--
Dirk

http://www.transcendence.me.uk/ - Transcendence UK
http://www.theconsensus.org/ - A UK political party
http://www.blogtalkradio.com/onetribe - Occult Talk Show


== 7 of 7 ==
Date: Sun, Feb 7 2010 11:15 pm
From: MarkusSchaber


Hi, Dirk,

On 8 Feb., 03:18, Dirk Bruere at NeoPax <dirk.bru...@gmail.com> wrote:
> >>> I am doing a research about motivation in software development,
> >>> the most efficient practices to motivate software engineers,
> >>> their popularity, etc.
> >> Strange question; the most efficient motivator of professionals is
> >> money, [...]
> > This was proven wrong by Science. Read Bruce Eckels excellent blog
> > entries about this topic, he always references relliable sources on
> > this subject.
> Depends.
> Right now I am primarily motivated by money, or at least the lack of it.

I won't dispute that money is a motivator, but it is not the most
efficient motivator. The more money you pay, the more you will attract
those developers which are purely after the money, and not the really
good ones. For the latter ones, a certain level on the paycheck is
enough to give attention to fun, excitement, atmosphere and such
factors.

==============================================================================
TOPIC: C++ and shared objects
http://groups.google.com/group/comp.lang.c++/t/c0dc99feb20c6b5f?hl=en
==============================================================================

== 1 of 3 ==
Date: Sun, Feb 7 2010 4:14 pm
From: Phoenix87


Hallo everybody

I want to build some shared libraries from C++ code defining classes
because I want to load them dynamically in programs that need that
classes. I've read about dlopen and co., which require the
implementation of factory procedures in order to dynamically allocate
class instances from the loaded shared object. Is there an alternative
way to dynamically load classes in C++ programs? I mean something
which allows to instantiate new class instances with new keyword
etc...Basically my question is quite the same thing as asking how the
STL, or the CERN ROOT libraries work.

Thanks in advice!

Gab.


== 2 of 3 ==
Date: Sun, Feb 7 2010 6:33 pm
From: tonydee


On Feb 8, 9:14 am, Phoenix87 <phoenix1...@gmail.com> wrote:
> I want to build some shared libraries from C++ code defining classes
> because I want to load them dynamically in programs that need that
> classes. I've read about dlopen and co., which require the
> implementation of factory procedures in order to dynamically allocate
> class instances from the loaded shared object. Is there an alternative
> way to dynamically load classes in C++ programs? I mean something
> which allows to instantiate new class instances with new keyword
> etc...Basically my question is quite the same thing as asking how the
> STL, or the CERN ROOT libraries work.

Using "new" (or creating an object on the stack) requires knowledge of
the object's size. For non-polymorphic objects, this is perfectly
possible without factories and polymorphism. But, just as in library
code that's not compiled into a shared object, if you want the library
to be able to vary the object size without needing the application to
be recompiled then you need to do something extra. Techniques such as
the pImpl idiom and run-time polymorphism / factories defer the memory
allocation to the shared object's code. You could plausibly have the
shared object report the size requirements back to the application, so
it can allocate memory using new, alloca etc., but that would be an
even more roundabout way of doing it.

The STL is quite different in that it's a template library...
everything is in the headers and they're instantiated as needed per
translation unit, with redundant instantiations removed at link time.
There is no shared library object involved. Same goes for most of
BOOST. I'm not familiar with CERN ROOT....

Cheers,
Tony


== 3 of 3 ==
Date: Sun, Feb 7 2010 10:46 pm
From: Robert Fendt


And thus spake Phoenix87 <phoenix1987@gmail.com>
Sun, 7 Feb 2010 16:14:50 -0800 (PST):

> I want to build some shared libraries from C++ code defining classes
> because I want to load them dynamically in programs that need that
> classes. I've read about dlopen and co., which require the
> implementation of factory procedures in order to dynamically allocate
> class instances from the loaded shared object. Is there an alternative
> way to dynamically load classes in C++ programs? I mean something
> which allows to instantiate new class instances with new keyword
> etc...Basically my question is quite the same thing as asking how the
> STL, or the CERN ROOT libraries work.

STL is a template framework. It therefore does not consist of
any runtime libraries apart from the C standard stuff
underneath. I do not know how ROOT works, but at first glance it
looks like just any other library to me. Which means that there
is no 'dynamic' stuff involved, at least not for the basics.

In order for a direct 'new' to work, the class definition has to
be available (header file) as well as the object files
containing all non-inline functions. So you just can build a
shared library of your stuff and use it for regular compiling
and linking against. In this case, the system's runtime
facilities will do the loading of the dynamic library for you at
program startup. This is straight-forward, and I do not
interpret your question in that direction. You seem to think
about dynamic loading rather than dynamic linking.

Dynamic loading means that you load something your compiler did
not know about. If you look at the specifications of dlopen()
and such (the Windows equivalents have similar restrictions),
you will find that the framework just allows for retrieval of
unmangled (i.e. plain C) symbols. This works for constants and
for function pointers (although the ability to retrieve a
function pointer directly through dlsym() is technically a
non-standard compiler extension, albeit a popular one).

Long story short: you really can only get a pointer to a factory
function by using dlsym() (POSIX) or GetProcAddress() (Windows).
There is no way around it, just live with it. Loading C++
classes directly would involve all sorts of pains and hassles,
not to mention a change to the C++ specifications, and since at
least POSIX does not deal with C++ anyway, dlsym() will not be
changed in the near future. I do not know about Microsofts's
plans for VC and GetProcAddress, but I would be surprised.

Regards,
Robert


==============================================================================
TOPIC: vector of Repository*
http://groups.google.com/group/comp.lang.c++/t/7f611d39b3355ccd?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, Feb 7 2010 7:15 pm
From: "Alf P. Steinbach"


* forums_mp@hotmail.com:
> Consider:
>
> # include<iostream>
> # include<vector>
>
> class CBase {

Consider omitting the "C" prefix for class names. E.g., instead of "CLaw", use
"Law", and instead of "CLick", just "Lick", and instead of "CLamp", just "Lamp".
Then you can talk and think about a "Law" and a "Lick" and a "Lamp" instead of a
"CLaw" and a "CLick" and a "CLamp" (not to mention "Lit" and "Luster").


> public :
> virtual ~CBase() {}
> };
> class CDerived1 : public CBase {
> public :
> };
> class CDerived2 : public CBase {
> public :
> };
> // etc.
>
> //later
> class Worker {
> CDerived1 cd1 ;
> unsigned int CDerived1Counter ;
> bool CDerived1Flag ;
> unsigned int CDerived1ID ;
>
> CDerived2 cd2 ;
> unsigned int CDerived2Counter ;
> bool CDerived2Flag ;
> unsigned CDerived2ID ;
> /// etc
>
> public :
>
> };

For this consider templates.

template< class T >
struct Blah
{
T obj;
bool flag;
int id;
};

class Worker
{
Blah<Derived1> d1;
Blah<Derived2> d2;
...
};


> The worker class has a ID, a Flag and a counter for each derived
> type. An approach that in my view is just silly. So I decided to
> create a repository.
>
>
>
> struct Repository {
> CBase *ptr;
> unsigned int Counter ;
> bool Flag ;
> unsigned int ID ;
>
> Repository ( CBase *ptr_, int BaseClassID )
> : ptr ( ptr_ )
> , Counter ( 0 )
> , Flag ( false )
> , ID ( BaseClassID )
> {}
> };
>
> typedef std::vector < Repository* > REPOSITORY_VEC ;
> class RevisedWorker {
> static REPOSITORY_VEC rep_vec ;

First, making that "static" means all instances share the same "rep_vec".

That's inconsistent with the earlier original "Worker".

Second, it's generally regarded as best practice to reserve all uppercase names
for macros (except for some few idiomatic usages such as for template params).


> public :
> RevisedWorker ()
> {
> rep_vec.push_back ( new Repository ( new CDerived2, 0x400 ) ) ;
> rep_vec.push_back ( new Repository ( new CDerived1, 0x300 ) ) ;
>
> // would be nice if i could do.. or perhaps use a map
> //rep_vec.add ( new Repository ( new CDerived2, 0x4000 ) )
> // .add ( new Repository ( new CDerived1, 0x300 ) ) );
> }
> };
>
> REPOSITORY_VEC RevisedWorker::rep_vec;
>
> int main() {
> RevisedWorker rw;
> std::cin.get();
> }
> At issue: 'new' Repository 'new' CDerivedXX looks unsightey but I'm
> not of a reasonable workaround. Ideas? Thanks in advance.

See above, but also keep in mind that you could just make that a vector of
"Repository", not "Repository*".


Cheers & hth.,

- Alf


== 2 of 2 ==
Date: Sun, Feb 7 2010 7:52 pm
From: forums_mp@hotmail.com


On Feb 7, 10:15 pm, "Alf P. Steinbach" <al...@start.no> wrote:

> > class CBase {
>
> Consider omitting the "C" prefix for class names. E.g., instead of "CLaw", use
> "Law", and instead of "CLick", just "Lick", and instead of "CLamp", just "Lamp".
> Then you can talk and think about a "Law" and a "Lick" and a "Lamp" instead of a
> "CLaw" and a "CLick" and a "CLamp" (not to mention "Lit" and "Luster").

The ironic thing about this is the 'C' prefix is a requirement from my
company's coding standards. I have two choise though. CFoo or
C_Foo.

>
> For this consider templates.
>
>    template< class T >
>    struct Blah
>    {
>        T     obj;
>        bool  flag;
>        int   id;
>    };
>
>    class Worker
>    {
>        Blah<Derived1>    d1;
>        Blah<Derived2>    d2;
>        ...
>    };
>

>
> See above, but also keep in mind that you could just make that a vector of
> "Repository", not "Repository*".

Ahhhh! I see.. Not sure I often think the a vector of pointers (I
think I read that somewhere) would be ideal here. I'm away from my
compiler right now but I suspect I should be able to get away with.

typedef std::vector < blah < Base > > base_vec ;
base_vec bv ;
bv.push_back ( blah < Derived1 > ) ;
True?

Thanks Alf

==============================================================================
TOPIC: Rolex Watch wholesale (paypal payment) (www.globlepurchase.com)
http://groups.google.com/group/comp.lang.c++/t/fe2724b8f85d9bbc?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Feb 7 2010 7:43 pm
From: brandtrade


Ebel Watch wholesale (paypal payment) (www.globlepurchase.com)
Bape Watch wholesale (paypal payment) (www.globlepurchase.com)
Bell&Ross Watch wholesale (paypal payment) (www.globlepurchase.com)
Breit Ling Watch wholesale (paypal payment) (www.globlepurchase.com)
Burberry Watch wholesale (paypal payment) (www.globlepurchase.com)
Cartier Watch wholesale (paypal payment) (www.globlepurchase.com)
Chopard Watch wholesale (paypal payment) (www.globlepurchase.com)
D&G Watch wholesale (paypal payment) (www.globlepurchase.com)
Givenchy Watch wholesale (paypal payment) (www.globlepurchase.com)
Jacob&Co Watch wholesale (paypal payment) (www.globlepurchase.com)
Kappa Watch wholesale (paypal payment) (www.globlepurchase.com)
Prada Watch wholesale (paypal payment) (www.globlepurchase.com)
Tissot Watch wholesale (paypal payment) (www.globlepurchase.com)
Titoni Watch wholesale (paypal payment) (www.globlepurchase.com)
U-BOAT Watch wholesale (paypal payment) (www.globlepurchase.com)
Zenith Watch wholesale (paypal payment) (www.globlepurchase.com)
A.Lange&Sohne Watch wholesale (paypal payment)
(www.globlepurchase.com)
Audemars Piguet Watch wholesale (paypal payment)
(www.globlepurchase.com)
Baume&Mercier Watch wholesale (paypal payment)
(www.globlepurchase.com)
Blancpain Watch wholesale (paypal payment) (www.globlepurchase.com)
Breguet Watch wholesale (paypal payment) (www.globlepurchase.com)
BRM Watch wholesale (paypal payment) (www.globlepurchase.com)
Bvlgari Watch wholesale (paypal payment) (www.globlepurchase.com)
Chanel Watch wholesale (paypal payment) (www.globlepurchase.com)
Concord Watch wholesale (paypal payment) (www.globlepurchase.com)
Corum Watch wholesale (paypal payment) (www.globlepurchase.com)
Dewitt Watch wholesale (paypal payment) (www.globlepurchase.com)
Ferrari Watch wholesale (paypal payment) (www.globlepurchase.com)
Franck Muller Watch wholesale (paypal payment)
(www.globlepurchase.com)
Girard Perregaux Watch (paypal payment) (www.globlepurchase.com)
Glashutte Watch (paypal payment) (www.globlepurchase.com)
Graham Watch wholesale (paypal payment) (www.globlepurchase.com)
GUCCI Watch wholesale (paypal payment) (www.globlepurchase.com)
GUESS Watch wholesale (paypal payment) (www.globlepurchase.com)
Hamilton Watch wholesale (paypal payment) (www.globlepurchase.com)
Hermes Watch wholesale (paypal payment) (www.globlepurchase.com)
Hublot Watch wholesale (paypal payment) www.globlepurchase.com)
IWC Watch wholesale (paypal payment) (www.globlepurchase.com)
Jaeger Le Coultre Watch wholesale (paypal payment)
(www.globlepurchase.com)
Longines Watch wholesale (paypal payment) (www.globlepurchase.com)
LV Watch wholesale (paypal payment) (www.globlepurchase.com)
Montblanc Watch wholesale (paypal payment) (www.globlepurchase.com)
Movado Watch wholesale (paypal payment) (www.globlepurchase.com)
Omega Watch wholesale (paypal payment) (www.globlepurchase.com)
Oris Watch wholesale (paypal payment) (www.globlepurchase.com)
Paket Philippe Watch wholesale (paypal payment)
(www.globlepurchase.com)
Panerai Watch wholesale (paypal payment) (www.globlepurchase.com)
Parmigiani Fleurier Watch wholesale (paypal payment)
(www.globlepurchase.com)
Piaget Watch wholesale (paypal payment) (www.globlepurchase.com)
Porsche Design Watch wholesale (paypal payment)
(www.globlepurchase.com)
Rolex Watch wholesale (paypal payment) (www.globlepurchase.com)
Romain Jerome Titanic-Dna Watch wholesale (paypal payment)
(www.globlepurchase.com)
Tag Heuer Watch wholesale (paypal payment) (www.globlepurchase.com)
Tudor Watch wholesale (paypal payment) (www.globlepurchase.com)
Vach.Constantine Watch wholesale (paypal payment)
(www.globlepurchase.com)
Armani Watch wholesale (paypal payment) (www.globlepurchase.com)
RADO Watch wholesale (paypal payment) (www.globlepurchase.com)

paypal wholesale d&g shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale gucci shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale lv shoes (paypal payment)( www.globlepurchase.com)
paypal wholesale NBA shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale nike (paypal payment)(www.globlepurchase.com)
paypal wholesale adidas shoes (paypal payment)
(www.globlepurchase.com)
paypal wholesale UGG shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale bape hoody (paypal payment)(www.globlepurchase.com)
paypal wholesale antick jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale diesel jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale artful dudger (paypal payment)
(www.globlepurchase.com)
paypal wholesale bag(lv gucci coach chanel d&g dior ed fendi )
(paypal payment)( www.globlepurchase.com)
paypal wholesale clothing (paypal payment)(www.globlepurchase.com)
paypal wholesale lrg,jeans,hoody, (paypal payment)
(www.globlepurchase.com)
paypal wholesale evisu jeans,hoody,shirt (paypal payment)
(www.globlepurchase.com)

paypal wholesale Prada (paypal payment)(www.globlepurchase.com)
paypal wholesale Puma (paypal payment)(www.globlepurchase.com)
paypal wholesale Sand (paypal payment)(www.globlepurchase.com)
paypal wholesale Shox (paypal payment)(www.globlepurchase.com)
paypal wholesale soccer (paypal payment)(www.globlepurchase.com)
paypal wholesale UGG (paypal payment)(www.globlepurchase.com)
paypal wholesale Versace (paypal payment)(www.globlepurchase.com)
paypal wholesale Women (paypal payment)(www.globlepurchase.com)
paypal wholesale Y-3 (paypal payment)(www.globlepurchase.com)

==============================================================================
TOPIC: int (*&)()
http://groups.google.com/group/comp.lang.c++/t/889d2547688e2155?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, Feb 7 2010 7:45 pm
From: Asif Zaidi


What does the syntax in subject line mean - how should I read it.


Thanks

Asif


== 2 of 2 ==
Date: Sun, Feb 7 2010 10:28 pm
From: Syron


Am 08.02.2010 04:45, schrieb Asif Zaidi:
> What does the syntax in subject line mean - how should I read it.
>
>
> Thanks
>
> Asif

if this is a typedef (like 'int(*&func)()') it is a reference to a
pointer to a function that returns an int.

Kind regards, Syron

==============================================================================
TOPIC: Paypal payment Discount Wholesale/Retail Gucci Shoes GUCCI Boots LV
Shoes LV Boots D&G shoes UGG boots etc BRAND shoes
http://groups.google.com/group/comp.lang.c++/t/68527c5fea45a8c6?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Feb 7 2010 7:50 pm
From: brandtrade


Shox Shoes (paypal payment)(www.globlepurchase.com)
shoes shox shoes (paypal payment)(www.globlepurchase.com)
nike shox shoe (paypal payment)(www.globlepurchase.com)
nike shox shoes (paypal payment)( www.globlepurchase.com )
shox shoe (paypal payment)( www.globlepurchase.com )

LV,coach,chanel boots wholesale (paypal payment)
( www.globlepurchase.com )
air force ones (paypal payment)(www.globlepurchase.com)
nike trading (paypal payment)( www.globlepurchase.com )
nike shox (paypal payment)( www.globlepurchase.com )
shox air (paypal payment)( www.globlepurchase.com)
white shoe (paypal payment)(www.globlepurchase.com )
nike shoe (paypal payment)( www.globlepurchase.com )
nike air shox (paypal payment)( www.globlepurchase.com)
shox r4
tennis shoes (paypal payment)(www.globlepurchase.com )
tennis shoe (paypal payment)( www.globlepurchase.com)
basketball shoe (paypal payment)( www.globlepurchase.com )
jordan shoe (paypal payment)(www.globlepurchase.com)
nike shox 2 (paypal payment)( www.globlepurchase.com)
nike shox ace (paypal payment)( www.globlepurchase.com)
men's shoe (paypal payment)( www.globlepurchase.com )
buy shoe (paypal payment)( www.globlepurchase.com)
adidas shoe (paypal payment)( www.globlepurchase.com )
kids shoe (paypal payment)( www.globlepurchase.com )
buy shoes (paypal payment)( www.globlepurchase.com )
puma shoe (paypal payment)(www.globlepurchase.com )
converse shoe (paypal payment)( www.globlepurchase.com )
shoes sale (paypal payment)(www.globlepurchase.com)
running shoes women (paypal payment)(www.globlepurchase.com )
adidas running shoes (paypal payment)( www.globlepurchase.com )
Ugg shoes wholesale (paypal payment)(www.globlepurchase.com)
ugg shoes (paypal payment)(www.globlepurchase.com )
Footwear (paypal payment)( www.globlepurchase.com)
Paul Smith shoes (paypal payment)( www.globlepurchase.com )
Jordan shoes (paypal payment)(www.globlepurchase.com )
Bape shoes (paypal payment)( www.globlepurchase.com)
Chanel shoes (paypal payment)(www.globlepurchase.com )
D&G shoes (paypal payment)( www.globlepurchase.com )
Dior shoes (paypal payment)( www.globlepurchase.com)
ED hardy shoes (paypal payment)( www.globlepurchase.com)
Evisu shoes (paypal payment)(www.globlepurchase.com)
Fendi shoes (paypal payment)( www.globlepurchase.com )
Gucci shoes `(paypal payment)( www.globlepurchase.com )
Hogan shoes (paypal payment)( www.globlepurchase.com )
Lv shoes (paypal payment)(www.globlepurchase.com )
Prada shoes (paypal payment)( www.globlepurchase.com )
Timberland shoes (paypal payment)( www.globlepurchase.com )
Tous shoes (paypal payment)( www.globlepurchase.com )
Ugg shoes (paypal payment)(www.globlepurchase.com)
Ice cream shoes (paypal payment)( www.globlepurchase.com )
Sebago shoes (paypal payment)( www.globlepurchase.com )
Lacoste shoes (paypal payment)( www.globlepurchase.com)
Air force one shoes (paypal payment)( www.globlepurchase.com )
TODS shoes (paypal payment)( www.globlepurchase.com)
AF shoes (paypal payment)( www.globlepurchase.com)

paypal wholesale d&g shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale gucci shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale lv shoes (paypal payment)( www.globlepurchase.com)
paypal wholesale NBA shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale nike (paypal payment)(www.globlepurchase.com)
paypal wholesale adidas shoes (paypal payment)
(www.globlepurchase.com)
paypal wholesale UGG shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale bape hoody (paypal payment)(www.globlepurchase.com)
paypal wholesale antick jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale diesel jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale artful dudger (paypal payment)
(www.globlepurchase.com)
paypal wholesale bag(lv gucci coach chanel d&g dior ed fendi )
(paypal payment)( www.globlepurchase.com)
paypal wholesale clothing (paypal payment)(www.globlepurchase.com)
paypal wholesale lrg,jeans,hoody, (paypal payment)
(www.globlepurchase.com)
paypal wholesale evisu jeans,hoody,shirt (paypal payment)
(www.globlepurchase.com)

paypal wholesale Prada (paypal payment)(www.globlepurchase.com)
paypal wholesale Puma (paypal payment)(www.globlepurchase.com)
paypal wholesale Sand (paypal payment)(www.globlepurchase.com)
paypal wholesale Shox (paypal payment)(www.globlepurchase.com)
paypal wholesale soccer (paypal payment)(www.globlepurchase.com)
paypal wholesale UGG (paypal payment)(www.globlepurchase.com)
paypal wholesale Versace (paypal payment)(www.globlepurchase.com)
paypal wholesale Women (paypal payment)(www.globlepurchase.com)
paypal wholesale Y-3 (paypal payment)(www.globlepurchase.com)

==============================================================================
TOPIC: MySQL connector/driver behaviour with Visual C++ CLR/CLI project
http://groups.google.com/group/comp.lang.c++/t/738ca35dc8623177?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Feb 7 2010 8:01 pm
From: 0


On Feb 2, 10:48 pm, 0 <jeffrey.whites...@gmail.com> wrote:
> Hello. i'm having an issue getting the MySQL connector/driver to
> behave proberly with a Visual C++ CLR/CLI project....  my issue is
> best described by this screen capture:http://img97.imageshack.us/i/mysqlissue.jpg/
>
> The host name that MySQL is trying to resolve is a series of strange
> characters.... certainly not the "string" that is passed into the
> connector function.  The exception handler is saying: Unknown MySQL
> server host 'U‹ìWVS ì  ' (11004)... clearly it is not trying to
> connect to tcp://bluetech
>
> Has anyone see this?  Could it have to do with language/character sets
> or something?  I've already tried: this->con = this->driver->connect
> (L"tcp://bluetech:3306",L"SC",L"SC");  but, the connect function is
> looking for a std::string.
>
> Can someone please help me?
>
> Thanks!

just a follow up here. i used the .NET version of the MySQL
connector. that seemed to do the trick! the .NET connector uses the
System::String as the inbound parameters. this eliminates all the
language/character issues.

cheers

==============================================================================
TOPIC: Paypal payment Discount Wholesale/Retail LV,Paket,Rolex,Omega,RADO,
Armani ,Hermes,GUCCI ,Chanel,D&G,Burberry etc BRAND watches(www.globlepurchase.
com)
http://groups.google.com/group/comp.lang.c++/t/a494775f6e50fff4?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Feb 7 2010 8:35 pm
From: globaltrade


Ebel Watch wholesale (paypal payment) (www.globlepurchase.com)
Bape Watch wholesale (paypal payment) (www.globlepurchase.com)
Bell&Ross Watch wholesale (paypal payment) (www.globlepurchase.com)
Breit Ling Watch wholesale (paypal payment) (www.globlepurchase.com)
Burberry Watch wholesale (paypal payment) (www.globlepurchase.com)
Cartier Watch wholesale (paypal payment) (www.globlepurchase.com)
Chopard Watch wholesale (paypal payment) (www.globlepurchase.com)
D&G Watch wholesale (paypal payment) (www.globlepurchase.com)
Givenchy Watch wholesale (paypal payment) (www.globlepurchase.com)
Jacob&Co Watch wholesale (paypal payment) (www.globlepurchase.com)
Kappa Watch wholesale (paypal payment) (www.globlepurchase.com)
Prada Watch wholesale (paypal payment) (www.globlepurchase.com)
Tissot Watch wholesale (paypal payment) (www.globlepurchase.com)
Titoni Watch wholesale (paypal payment) (www.globlepurchase.com)
U-BOAT Watch wholesale (paypal payment) (www.globlepurchase.com)
Zenith Watch wholesale (paypal payment) (www.globlepurchase.com)
A.Lange&Sohne Watch wholesale (paypal payment)
(www.globlepurchase.com)
Audemars Piguet Watch wholesale (paypal payment)
(www.globlepurchase.com)
Baume&Mercier Watch wholesale (paypal payment)
(www.globlepurchase.com)
Blancpain Watch wholesale (paypal payment) (www.globlepurchase.com)
Breguet Watch wholesale (paypal payment) (www.globlepurchase.com)
BRM Watch wholesale (paypal payment) (www.globlepurchase.com)
Bvlgari Watch wholesale (paypal payment) (www.globlepurchase.com)
Chanel Watch wholesale (paypal payment) (www.globlepurchase.com)
Concord Watch wholesale (paypal payment) (www.globlepurchase.com)
Corum Watch wholesale (paypal payment) (www.globlepurchase.com)
Dewitt Watch wholesale (paypal payment) (www.globlepurchase.com)
Ferrari Watch wholesale (paypal payment) (www.globlepurchase.com)
Franck Muller Watch wholesale (paypal payment)
(www.globlepurchase.com)
Girard Perregaux Watch (paypal payment) (www.globlepurchase.com)
Glashutte Watch (paypal payment) (www.globlepurchase.com)
Graham Watch wholesale (paypal payment) (www.globlepurchase.com)
GUCCI Watch wholesale (paypal payment) (www.globlepurchase.com)
GUESS Watch wholesale (paypal payment) (www.globlepurchase.com)
Hamilton Watch wholesale (paypal payment) (www.globlepurchase.com)
Hermes Watch wholesale (paypal payment) (www.globlepurchase.com)
Hublot Watch wholesale (paypal payment) www.globlepurchase.com)
IWC Watch wholesale (paypal payment) (www.globlepurchase.com)
Jaeger Le Coultre Watch wholesale (paypal payment)
(www.globlepurchase.com)
Longines Watch wholesale (paypal payment) (www.globlepurchase.com)
LV Watch wholesale (paypal payment) (www.globlepurchase.com)
Montblanc Watch wholesale (paypal payment) (www.globlepurchase.com)
Movado Watch wholesale (paypal payment) (www.globlepurchase.com)
Omega Watch wholesale (paypal payment) (www.globlepurchase.com)
Oris Watch wholesale (paypal payment) (www.globlepurchase.com)
Paket Philippe Watch wholesale (paypal payment)
(www.globlepurchase.com)
Panerai Watch wholesale (paypal payment) (www.globlepurchase.com)
Parmigiani Fleurier Watch wholesale (paypal payment)
(www.globlepurchase.com)
Piaget Watch wholesale (paypal payment) (www.globlepurchase.com)
Porsche Design Watch wholesale (paypal payment)
(www.globlepurchase.com)
Rolex Watch wholesale (paypal payment) (www.globlepurchase.com)
Romain Jerome Titanic-Dna Watch wholesale (paypal payment)
(www.globlepurchase.com)
Tag Heuer Watch wholesale (paypal payment) (www.globlepurchase.com)
Tudor Watch wholesale (paypal payment) (www.globlepurchase.com)
Vach.Constantine Watch wholesale (paypal payment)
(www.globlepurchase.com)
Armani Watch wholesale (paypal payment) (www.globlepurchase.com)
RADO Watch wholesale (paypal payment) (www.globlepurchase.com)

paypal wholesale d&g shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale gucci shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale lv shoes (paypal payment)( www.globlepurchase.com)
paypal wholesale NBA shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale nike (paypal payment)(www.globlepurchase.com)
paypal wholesale adidas shoes (paypal payment)
(www.globlepurchase.com)
paypal wholesale UGG shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale bape hoody (paypal payment)(www.globlepurchase.com)
paypal wholesale antick jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale diesel jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale artful dudger (paypal payment)
(www.globlepurchase.com)
paypal wholesale bag(lv gucci coach chanel d&g dior ed fendi )
(paypal payment)( www.globlepurchase.com)
paypal wholesale clothing (paypal payment)(www.globlepurchase.com)
paypal wholesale lrg,jeans,hoody, (paypal payment)
(www.globlepurchase.com)
paypal wholesale evisu jeans,hoody,shirt (paypal payment)
(www.globlepurchase.com)

paypal wholesale Prada (paypal payment)(www.globlepurchase.com)
paypal wholesale Puma (paypal payment)(www.globlepurchase.com)
paypal wholesale Sand (paypal payment)(www.globlepurchase.com)
paypal wholesale Shox (paypal payment)(www.globlepurchase.com)
paypal wholesale soccer (paypal payment)(www.globlepurchase.com)
paypal wholesale UGG (paypal payment)(www.globlepurchase.com)
paypal wholesale Versace (paypal payment)(www.globlepurchase.com)
paypal wholesale Women (paypal payment)(www.globlepurchase.com)
paypal wholesale Y-3 (paypal payment)(www.globlepurchase.com)

==============================================================================
TOPIC: C++ Workshop Announcement from the NYLUG and NYLXS Mailing Lists
http://groups.google.com/group/comp.lang.c++/t/5899d52668535101?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Feb 8 2010 12:10 am
From: Ruben Safir

C++ Syntax

Before exploring how we actually represent data in our C++ programs, I
want to introduce a formal discussion of basic C++ syntax, which, like
data types, doesn't get enough attention in most standardized texts.

All programming languages require syntax rules in order for the
compilers, to parse and create working machine code. These syntax rules
require basic understanding of core components. These components include
files, structure, statements, data and operators.

Starting from the top, first you have files, and files usually have naming
rules. C++ inherits from C nearly all the file structures, and actually
requires a greater knowledge in more detail and at an earlier level of
expertise. C++, because of its object oriented design depends heavely on
library creation. In fact, even for beginners, most of your work happens
on the library level.

All C programs inherit from the Unix enviroment, which co-developed with
C, the need for an initiation of the main function definition. All C
programs start with main, and main will then absorb and use all other
parts of the systems libraries and programming to produce your completed
program. Main is located in your upper most programming file.

Standard Programming Files: A standard programming file is when the top
most programming will take place. In the C language, most of your code,
espeically as a beginner takes place in this file. Most commonly these
files have a suffix of either .cc oro .C. file.C for example is a
standard C++ File name.

A standard programming file will have several components:

1) Include Prepocessor Directives - These import header files and define
the definitions of the symbols which your not spontaneously creating,
that your program will use.

And include directive might look like this:

#include <iostream>

Which tells the compiler to load up the defintions of all the functions
and objects defined in the iostream library.

Standard C++ libraries are included using the angle blacket notions as
above.They are search for by your compiler in a set of standard locations
which are defined by your compiler and programming enviroment (something
I wouldn't mind understanding better on modern Linux and GNU enviroments).

If you use the syntax

#include "myheader"

with double quotes, the compiler will look for these headers in the local
directory.

C libraries are accessable in C++ and can either have a standard C
language notion

#include <assert.h>
#include <stdio.h>
***Note the .h suffix being included***
or use the C++ version

#include <casset>
#include <cstdio>


2) Macro and other Prepocessor Compiler Directives - Help set up
conditions in which libraries and header files are brought into your
program to help prevent duplication and to create different versions of
a program as might be needed for differing architecture or conditions.

The list of Preprocessor Directives are as follows:
#define

No comments: