Sunday, May 31, 2015

Digest for comp.lang.c++@googlegroups.com - 3 updates in 1 topic

Christian Gollwitzer <auriocus@gmx.de>: May 31 08:37AM +0200

Am 31.05.15 um 00:46 schrieb Stefan Ram:
 
> int main()
> { int std = 3;
> std::cout << std << '\n'; }
 
I can't find a problem here. In C++, namespaces and variables live in a
different domain. This would be different in Python, where a module is
actually an object and can be passed around and assigned to. But in C++
there is no way to do such a thing, as in the fictional code below.
 
namespace mystd=::std;
void doitthere(namespace where) {
where::cout<<"Something";
}
 
doitthere(mystd);
 
 
 
 
Christian
Marcel Mueller <news.5.maazl@spamgourmet.org>: May 31 09:11AM +0200

On 31.05.15 00.46, Stefan Ram wrote:
 
> int main()
> { int std = 3;
> std::cout << std << '\n'; }
 
::std::cout << std
 
fixes the name clash.
 
 
Marcel
"Öö Tiib" <ootiib@hot.ee>: May 31 05:14AM -0700

On Sunday, 31 May 2015 10:11:34 UTC+3, Marcel Mueller wrote:
> > std::cout << std << '\n'; }
 
> ::std::cout << std
 
> fixes the name clash.
 
There are none to fix. That int std can not be considered as
class-name-or-namespace-name so it does not participate as one in
construction of qualified-id 'std::cout'.
 
In general such code is useful as a test case for a parser of C++
or as element of obfuscation.
It would be lot easier for everybody if the compiler said that the name
'std' is taken already and suggested to use some other for that int.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

Saturday, May 30, 2015

Digest for comp.lang.c++@googlegroups.com - 7 updates in 3 topics

bleachbot <bleachbot@httrack.com>: May 30 04:35PM +0200

ram@zedat.fu-berlin.de (Stefan Ram): May 30 10:46PM

Before I tried it, I was not sure whether the following
program would compile and how it would behave.
 
#include <iostream>
#include <ostream>
 
int main()
{ int std = 3;
std::cout << std << '\n'; }
"MICHELE RAGAZZI. ODEY GIANO." <ginobusciarello@outlook.com>: May 30 07:35AM -0700

I 2 BASTARDI LAVA CASH MAFIOSO DAVIDE SERRA DI ALGEBRIS E PAOLO BARRAI (AVANZO DI GALERA: 3 VOLTE IN CARCERE IN VITA SUA) FAN STALKING ASSASSINO A GENIO BORSISTICO ED EROE CIVILE MICHELE NISTA, SU ORDINE DI NAZIMAFIOSO PEDOFILO SILVIO BERLUSCONI E...
 
UE - BRUXELLES SCHUMAN

6.11.2014

SCHIFOSO PUZZONE CRIMINALE DAVIDE SERRA DI TWITTER, ALGEBRIS INVESTMENTS E NEO PIDUISTA LEOPOLDA DI ME-DA: LAVA CASH DI MAFIE DI MEZZO MONDO! VE LO STRA ASSICURO: E´ ANCHE E STRA ANCHE, FREQUENTE MANDANTE DI OMICIDI! COME DI UCCISIONI DI PARTITI POLITICI! INFILTRA ED UCCIDE, ORA, NON PER NIENTE, IL PD, VIA SUINO FASCIO E BERLUSCORROTTISSIMO MATTEO RENZI, SU ORDINE (E MEGA MAZZETTE) DI LADRO, STRAGISTA, NAZIMAFIOSO, PEDOFILO SILVIO BERLUSCONI E SUOI DETERSIVI DI COSA NOSTRA DI (ALTRO) MEZZO PIANETA TERRA: ENNIO DORIS DI BANCA CAMORRANUM, NDRANGOLANUM, NAZISTANUM, MEDIOLANUM E VERME ERNESTO PREATONI!
 
Innanzitutto scusate per il mio, "muy so so" italiano. Ciao, questa volta mi rilevo in toto, sono Martin Zapico, ex Chief di Morgan Stanley Securities Lending ( e dico subito, sorry for my muy muy muy so so italiano, anzi, direi, "renzusconicchio"). E conosco il nazista ed immenso ricicla soldi mafiosi Davide Serra di Algebris Investments e Twitter come le mie tasche ( qui, in una foto di non pochissimi anni fa, che io in persona gli feci, e che poi passai al dailymail, pur senza far sapere chi, qui fosse, il pazzo idiota mega sniffatore di almeno 150-200 mg di cocaina al giorno, ossia la lavatrice finanziaria delle piu' assassine mafie al mondo: Davide Serra, il massone nazifascista di Algebris Investments e Twitter:
http://i.dailymail.co.uk/i/pix/2012/07/24/article-2178351-1432DEAF000005DC-730_468x286.jpg
... ahhha, giusto per finire, pls: ditemi voi, se Renzusconia non sia un paese stra colmo di diarrea colerica, visto che qui a Londra, in questo Novembre 2014, vi sono rumours che il, per una vita, fascistissimo gangster pro Benito Mussolini ed Adolf Hitler, Giorgio Napolitano
http://lucianocastaldi.altervista.org/wp-content/uploads/2013/01/giorgio-napolitano-fascista.jpg
prima di lasciare, vorra´rendere sta merdac-ia criminalissima e drogatissima di Davide Serra, cavaliere o addirittura, commendatore, ovviamente, su pressione della cloache berluscorrottissime Matteo Renzi ed Ennio Doris). Lo conosco dal 1994, da quando giunse a Londra. Lo volevo sputtanare da tantissimo tempo, ma l'unione di due fatti che sono {a} non cerco, di carattere, particolarmente, la pubblicta', misto a {b} mancanza di tempo e pure un poco di {c}, mio, di certo, non perfetto, italiano, anzi, renzusconiano, anzi, renzusconicchio, scritto, mi fermavano sempre. Ma l'intervista stra farcita di menzogne che sto verme falsissimo di Davide Serra di Algebris ha dato oggi a Repubblica ha rotto ogni argine. Quindi, in data odierna, 6.11.2014, come dicono nella simpaticissima Napule, " mi haggia proprio sfuga' ".
 
Passiamo all'intervista in questione, ora, pls and stra pls. Il criminalissimo nazista e mega ricicla soldi mafiosi Davide Serra raglia che gestisce due miliardi e passa di dollari. Ma non dice che dietro vi e' ( nei fatti, ripeto, nei fatti) Cosa Nostra sicula, Camorra campana, Ndrangheta calabrese, Sacra Corona Unita pugliese, Mafia rumena, Mafia russa, Mafia albanese, Mafia colombiana, Mafia panamense e tanta Mafia italo americana, come italo canadese. Io, me medesimo ( come cantava Joan Armatrading, quando facevo il dj in discoteca nel West End di Londra: " me, myself and i") Martin Zapico, ho sentito da Davide Serra dirmi nel 2006, durante una cena: " aaah, domani sera incontro l'avvocato di Michael Mancuso che attraverso Banca Esperia Milano mi fa arrivare 250 milioni di dollari da gestire". Un Berlusconiano e quindi verminoso colletto malavitoso, potrebbe ora, anche dire " minchia, e chi e' sto Michael Mancuso, aaa, io conosco solo Andrea Mancuso di Forza Italia Mafiosa in Provincia di Bergamo"? Presto detto
http://en.wikipedia.org/wiki/Michael_Mancuso Trattasi di uno dei principali boss di Cosa Nostra Italo Americana. Boss numero uno di notissima megassassina famiglia Bonanno " aaa". Infatti, la seconda parte del discorso fattomi da Davide Serra, a fine Novembre 2006, poi fu: "all'inizio di quest'anno hanno arrestato Michael Mancuso a New York, Michael ha due miliardi di dollari da far sparire prima che glieli confiscano, ne abbiamo parlato ad Arezzo, settimana scorsa, presso la nostra nazifascistissima e filo mafiosa Gran Loggia Massonica Italiana... eravamo io Davide Serra, Licio Gelli, Marina Berlusconi, Paolo Barrai, Luigi Grillo, Gianpiero Samori', Nicola Bravetti, Paolo Sciume', Ennio Doris, Massimo Doris e Giuseppe Sabato, Dirigente di Banca Esperia e al cotempo Gran Maestro "Camorrista" di citata Gran Loggia Massonica Italiana, diciamola tutta, la nuova P2 ( su cui vi potete "illuminare acca' aaa:
http://laici.forumcommunity.net/?t=4915439
https://books.google.it/books?id=RNdU9ZOLYCAC&pg=PT179&lpg=PT179&dq=GIUSEPPE+SABATO+GRAN+LOGGIA&source=bl&ots=fN_8500JQI&sig=wjCO-WhAucePURwPSoT59LvpWPY&hl=it&sa=X&ei=BIpPVe-0CIGssAGGjYDACQ&ved=0CD4Q6AEwBA#v=onepage&q=GIUSEPPE%20SABATO%20GRAN%20LOGGIA&f=false). Continuo' il bandito misto a mega mariuolo Davide Serra... " ad un certo punto Licio Gelli mi disse, davanti a tutti «come negli anni 70 arricchii da sotto zero Silvio Berlusconi con tirs che dalla Sicilia arrivavano all'Ortomercato di "Meeelano aaa", pieni di quintali di arance, limoni, eroina, hashish, cocaina e soldi che colavano fiumi di morti ammazzati, di Stefano Bontate, ora voglio fare lo stesso con te, Davide Serra". Quindi, ancora: " Caro Davide, l'avvocato qui presente di Michael Mancuso ha mosso un miliardo di dollari a Panama e un altro in Svizzera, presso Banca Arner... da Banca Arner, mezzo miliardo lo manderanno a Banca Esperia e Banca Esperia mandera' 250 milioni di euro a te". In un altro incontro del Novembre 2007, il gestore finanziario delle Mafie di mezzo mondo, Davide Serra, mi disse, invece: " cavolo, sto sfondando, Silvio Berlusconi e' sicuro di vincere le prossime elezioni del 2008 dopo aver fatto cadere Romano Prodi, comprandogli meta' senatori... non per niente, Adolf Hitler-George Bush e la mafia italo americana lo ri vogliono a Palazzo Chigi di nuovo... nel frattempo, via Banca Mediolanum, mi fara' arrivare, facendo girare il tutto su Singapore ed Hong Kong, un miliardo di dollari del grandissimo, verace siculo, Domenico Cefalu'
http://it.wikipedia.org/wiki/Domenico_Cefal%C3%B9
che ha paura di venire arrestato ( come infatti poi accadette nel 2008) e quindi vuole far sparire i soldi che al momento ha in Belize.... sia io Davide Serra, che Marcello Dell'Utri, che Ennio Doris, che Massimo Doris, che Marina Berlusconi, che Attilio Ventura, che Paolo Barrai, che Emilio Fede, che Domenico Cefalu' e tantissimi altri, facciamo parte della Loggia personale di Silvio Berlusconi, ad (H)Ar(d)core ( https://www.facebook.com/notes/contro-linformazione-manipolata/un-capo-massone-rivela-berlusconi-ha-fondato-la-sua-loggia-è-lì-che-si-decide-no/437022599774 )
 
Insomma, Davide Serra e' un cane quanto a dare rendite finanziarie, ma si sa', le Mafie non sono cosi' tanto interessate ad avere grandi performances in Borsa ma a lavare i capitali, pensando, cosi', di poter legittimarli. Hanno usato prima quei cani nazisti e stragisti di Michele Sindona e suo cumparieddu Luigi Berlusconi in Banca Rasini ( non per niente chiusa dalla Dea americana, in quanto l'immondizzaio piduista italiano, sui mega riciclaggi di detta banca chiudeva venti occhi e non "solo" due
http://www.beveraedintorni.com/lettere-deliranti/3382-la-banca-rasini-sciolta-per-mafia-e-la-famiglia-berlusconi.html
http://www.namir.it/rasini.htm
http://www.berluscastop.it/_und/silvio_it2.htm), oltre che ovviamente, Silvio Berlusconi in Ma-F-ininvest e Ma-F-iaset, a tal lercio scopo. Ora, il Kapo' dei pedofili piu' fascisti e mafiosi del mondo, Silvio Berlusconi, oltre a mega lavare soldi assassini in proprio, via sue bastarde aziende che con Obama Barack volevamo spingere a zero (speriamo che le ultime elezioni usa di mid term non ci blocchino in detto senso) sfruttano a tal criminalissimo scopo.... i massoni nazifascisti... i massonazifascisti..
 
-Paolo Sciume'
http://espresso.repubblica.it/palazzo/2008/05/15/news/vado-riciclo-e-torno-1.8408
 
-il nuovo Walter Lavitola misto a Anders Behring Breivik, bastardo avanzo di galera assassino Paolo Barrai del blog che non legge mai nessuno, se non tre vermi Berlusconazisti e Padanazisti come lui: Mercato " Merdato" Libero
http://inquisitore.org/2013/08/26/paolo-barrai-se-lo-conosci-lo-eviti/'
http://inquisitore.org/2013/09/23/paolo-barrai-condannato-dalla-consob/

( per descrivere questo topastro di fogna, un pezzo di un ottimo testo girante in rete:
 
"PERICOLOSISSIMO AVANZO DI GALERA PAOLO BARRAI DI MOVIMENTI TIPO " KU KLUK KLAN PADANO" E SIA "FIAMMA TRICOLORE CHE FORZA NUOVA CHE CASA POUND CHE LL LEGA LADRONA":
 
COLLETTO CRIMINALISSIMO PAOLO BARRAI: GIA' CACCIATO A SBERLE DA CITIBANK PER CRIMINI EFFERATI CHE LI EFFETTUAVA (come da questo seguente articolo:
..... il criminalissimo "funzionario nei guai" di Citibank di qui, fine scritto, e l'assolutamente scafato delinquente Paolo Barrai:
http://archiviostorico.corriere.it/2001/febbraio/02/Arrestato_imprenditore_delle_truffe_fiscali_co_7_0102023408.shtml ), CON MULTE DI QUASI 100.000 EURO DA PARTE DI CONSOB http://www.consob.it/main/documenti/hide/afflittivi/pec/mercati/2013/d18579.htm, GIA' CON GUAI LEGALI SERISSIMI A BIELLA, CONDANNATO AL CARCERE A MILANO E, TETNETEVI FORTE, PLS, FINANCO A PORTO SEGURO IN BRASILE
 
http://www.portonewsnet.com.br/?mw=noticias&w=2996
 
http://www.rotadosertao.com/noticia/10516-porto-seguro-policia-investiga-blogueiro-italiano-suspeito-de-estelionato
 
http://www.osollo.com.br/online/index.php/crimes/3052-blogueiro-italiano-sera-indiciado-por-estelionato-calunia-e-difamacao-pela-policia-civil-de-porto-seguro
 
http://portoseguroagora.blogspot.be/2011/03/porto-seguro-o-blogueiro-italiano-sera.html
 
http://noticiasdeportoseguro.blogspot.nl/2011/03/quem-e-pietro-paolo-barrai.html )
 
- l'immenso lava soldi mafiosi Gianpiero Samori'
http://espresso.repubblica.it/palazzo/2012/11/30/news/samori-e-un-po-cosi-1.48456
http://www.corriere.it/politica/12_novembre_19/affari-samori-tra-san-marino-curacao-gerevini_b46c36fc-3213-11e2-942f-a1cc3910a89d.shtml
http://www.huffingtonpost.it/2012/11/06/samori-berlusconi-pdl_n_2083116.html
 
- l'ex socio di pluri pregiudicato Paolo Barrai, pregiudicato tanto quanto, Alessandro Proto http://www.ilfattoquotidiano.it/2013/02/14/manipolazione-del-mercato-arrestato-a-milano-finanziere-alessandro-proto/500117/
 
- ai tempi, la banda nazimafiosa di Stefano Ricucci e Danilo Coppola
http://www.societacivile.it/blog/inchieste/furbetto.html
http://it.sport.calcio.roma.narkive.com/lPgMkinf/coppola-un-mafioso-nella-proprieta-della-roma
http://www.societacivile.it/primopiano/articoli_pp/nattino.html
 
- e sto verme Hitleriano e mega lava soldi mafiosi di Davide Serra di Twitter ed Algebris che si finge di centro sinistra, esatto esatto con lo stesso intento con cui i vermi usano strisciare di nascosto, prima di entrare nelle mele, per poi impadronirsene, e farle bacare a morte. Prima di scrivervi un ultima cosa da totali brividi su sto maiale con swastika nel cuore ancor prima che al braccio, di Davide Serra (che fra l'altro e' razzistissimo, non solo odia le persone di colore, ma anche i meridionali o meridionali di origine del verminaio corrottissimo e ladrone di " Renzusconia"; come uno sbruffone, si dice Cattolico, ma e' notissimo massone satanista, anzi, sata-n-azista; aggiunge che fa carita' in Tanzania, ma, {a} non dichiara che e' solo verminoso marketing e specialmente, {b} dimostra di essere affatto Cristiano, visto che delle parole di Gesu' Cristo che presto riporto, non ha capito nulla, essendo che lo stesso Gesu', in tante occasioni, ha detto: "Guardatevi dal praticare le vostre buone opere davanti agli uomini per essere da loro ammirati, altrimenti non avrete ricompensa presso il Padre vostro nei cieli..... Quando dunque fai l'elemosina, non suonare la tromba davanti a te, come fanno gli ipocriti nelle sinagoghe e nelle strade per essere lodati dagli uomini...... In verita' vi dico: hanno gia' ricevuto la loro ricompensa..... Quando invece tu fai l'elemosina, non sappia la tua sinistra che fa la tua destra, perche' la tua elemosina resti segreta... e il Padre tuo, che vede nel segreto, ti ricompensera' ") vorrei ricordare che lo stesso, ovviamente, mega ricicla, pure, cash di Mafia Russa, via Silvio Berlusconi, Mafia Ungherese, via Silvio Berlusconi, Mafia Albanese, via Silvio Berlusconi, Mafia Colombiana, via Silvio Berlusconi, Mafia Panamense, via Silvio Berlusconi: Russia, Ungheria, Albania, Colombia, Panama, tutte nazioni ove assassinissima malavita e dittature di estremissima destra, non per niente, si fondono.
 
Ora un inciso importantissimo, su uno che i bastardi stragisti nazimafiosi e pedofili Silvio Berlusconi, Paolo Barrai e Davide Serra (si, proprio cosi', anche noto pederasta Davide Serra.. che frequenta la Tanzaina, in quanto li vi sono soldi lercissimi "che gestisce", sia di ex Pdl, Popolo di Ladroni, che di LL, Lega Ladrona; come per sfogare sue voglie da depravato sessuale da rinchiudere in galera subito) vogliono morto: noto eroe civile e genio borsistico Michele Nista. Un sei mesi fa, nella primavera 2014, Michele tornava a Londra ( ove vive dal 1998 e per sfuggire ai complotti killer che il bastardo spappolatore di Falcone e Borsellino, Silvio Berlusconi, gli scatenava contro, ogni giorno, in Borsa di Milano, e specie e per le strade di Milano), da un viaggio di volontariato, pericolosissimo, in zone ove vengono ammazzate migliaia di persone. In Messico. Ove aveva anche conosciuto attivisti anti malavita, che fra l'altro confermarono a Michele che il nazimafioso, pedofilo mandante di centinaia di omicidi e dozzine di carneficine, Silvio Berlusconi, usava ma ancora usa le ville di Antigua come base per mega spaccio di cocaina a livello mondiale ( ed i servizi segreti di Antigua han parecchi videos a proposito, che han sfruttato per far si che l'Al Capone misto ad Benito Mussolini, Silvio Berlusconi, affinche' il tutto non venisse a galla, ponesse pressione alla comunita' mondiale, perche' venissero cancellati i debiti di Antigua stessa
https://ammiraglio61.wordpress.com/2010/10/26/lodo-antigua-il-miracolo-di-berlusconi-via-il-debito/ ). Michele Nista e' un grandissimo Eroe, in primis e poi anche Genio Borsistico ( da' ogni anno performances del 50-90% ed anche quando le Borse, un granche' non sono, come accaduto nel 2010 o 2011; ovvio che un incapace in performances borsistiche come Davide Serra, che vive solo di bastardissimi lavaggi di cash killer, odi Michele Nista, anche in quanto di assoluto, genuino e puro centro sinistra, e non da ora, in quanto di pseudomoda, ma gia' dal 1994, quando essere di centro sinistra, nella schifosissimamente Padanazista e Berlusconazista Borsa di Milano, era come inserirsi fra leoni affamatissimi, ben appunto, della Tanzania). Non io ma qualcun altro ha scritto il seguente su di lui ed assicuro che e' tutto piu' che stra vero e fra l'altro provabilissimo:
"... E CHE SIA CHIARO, IO NON SON PER NULLA GENIO, RE MIDA ED EROE CIVILE MICHELE NISTA. NON LO SONO, ANCHE SE LO VORREI DI CERTO ESSERE, VISTO IL SUO ECCEZIONALE GENIO E FIUTO. DA ASSOLUTI NUMERI UNO AL MONDO. E CHE VEDREI BENISSIMO SULLA SEGGIOLA DI STO CESSO NAZISTA E NDRANGHETISTA DI MATTEO RENZI, CORROTTISSIMO DA SILVIO BERLUSCONI, PER FARE LEGGI, E PRENDERE DECISIONI, PRO, QUEST'ULTIMA "FASCIOCAMORRISTAM ED PEDOFILAM PERSONAM". DA POSIZIONE DI FINTISSIMO CENTRO SINISTRA, CHE E' ORMAI, IN REALTA', ESTREMISSIMA DESTRA. CERCANDO COSI' DI FREGARE TUTTI, DA APPOSTAZIONE INASPETTATA! SGOZZANDO A MORTE, DEMOCRAZIA,
Piet <bremende55@gmail.com>: May 30 03:09AM -0700

Why a twodimensional array can be initialised this way:
array<array<int, 3>, 2> matrix {1, 2, 3, 4, 5, 6};
 
but not this way:
array<array<int, 3>, 2> matrix {{1, 2, 3}, {4, 5, 6}};
 
clang 3.6 says:
error: excess elements in struct initializer
array<array<int, 3>, 2> matrix {{1, 2, 3}, {4, 5, 6}};
^~~~~~~~~
But c++-standard says in 23.3.2.1
An array is an aggregate (8.5.1) that can be initialized with the syntax
array<T, N> a = { initializer-list };
where initializer-list is a comma-separated list of up to N elements whose types are convertible to T.
I think this is ok, and array<int, 3> arr {1, 2, 3}; indeed works perfectly.
 
With vector, there is not such a problem:
vector<vector<int> > matrix {{1, 2, 3}, {4, 5, 6}};
works perfectly, too.
 
Why does this kind of initialization not work with array? Do I misunderstand the standard document?
 
Piet
Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid>: May 30 01:20PM +0200

> array<array<int, 3>, 2> matrix {1, 2, 3, 4, 5, 6};
 
> but not this way:
> array<array<int, 3>, 2> matrix {{1, 2, 3}, {4, 5, 6}};
 
You need an additional pair of braces:
 
array<array<int, 3>, 2> matrix { {{1, 2, 3}, {4, 5, 6}} };
 
> array<T, N> a = { initializer-list };
> where initializer-list is a comma-separated list of up to N elements
> whose types are convertible to T.
 
Right, but 8.5.1 states: "When an aggregate is initialized by an
initializer list, as specified in 8.5.4, the elements of the initializer
list are taken as initializers for the members of the aggregate, in
increasing subscript or member order." It seems to me that 23.3.2.1 is
contradictory.
 
> I think this is ok, and array<int, 3> arr {1, 2, 3}; indeed works perfectly.
 
Well, hmm, I guess there is somewhere a rule that says that you can omit
braces in certain circumstances, that applies when members have type int
but not when members have some other type.
 
(In other words: I've no idea what happens here, I'm not going to mess
with insane complexity like that, and I'll stick with putting one level
of braces per aggregate, i.e., struct or array).
 
> With vector, there is not such a problem:
> vector<vector<int> > matrix {{1, 2, 3}, {4, 5, 6}};
> works perfectly, too.
 
Yes, but vector<...> has specific constructors for this, and array does
not I think.
 
> Why does this kind of initialization not work with array? Do I
> misunderstand the standard document?
 
Don't know.
 
-- Alain.
"Öö Tiib" <ootiib@hot.ee>: May 30 05:18AM -0700

On Saturday, 30 May 2015 13:10:02 UTC+3, Piet wrote:
> array<T, N> a = { initializer-list };
> where initializer-list is a comma-separated list of up to N elements whose types are convertible to T.
> I think this is ok, and array<int, 3> arr {1, 2, 3}; indeed works perfectly.
 
'std::array' is aggregate class that contains one and only one
non-static member that is raw array. However 23.3.2 does not say it out
but instead describes some dim things. We can initialize actual
'std::array' like that:
 
std::array<int, 3> arr {{1, 2, 3}};
 
C++11 tried to add uniform initialization mixing of
'std::initializer_list' and (not fully) backward compatible C aggregate
initialization and C++03 direct initialization (and IMO failed miserably).
For 'std::array' (that is aggregate) that allows us to omit the
innermost braces and so such syntax is valid:
 
std::array<int, 3> arr {1, 2, 3};
 
If you now nest two 'std::array's then the compiler has some idea of
what braces you may omit and what you may not omit ... but you likely
are confused and omit wrong ones. I may be also confused but mine
interpretation of it is that:
 
// full braces should certainly work
// I myself prefer it
std::array<std::array<int, 3>, 2> matrix_full {{{{1, 2, 3}, {4, 5, 6}}}};

// omitting innermost braces should also work
std::array<std::array<int, 3>, 2> matrix_noinner {{{1, 2, 3}, {4, 5, 6}}};
 
// omitting two levels of inner braces should work
std::array<std::array<int, 3>, 2> matrix_no2inner {{1, 2, 3, 4, 5, 6}};
 
// omitting all inner braces should work
std::array<std::array<int, 3>, 2> matrix_none {1, 2, 3, 4, 5, 6};
 
Above seems to work with implementations in practice. What you did
however was what compilers do not expect:
 
// ERROR: compiler does not understand it
array<array<int, 3>, 2> matrix {{1, 2, 3}, {4, 5, 6}};
 
> With vector, there is not such a problem:
> vector<vector<int> > matrix {{1, 2, 3}, {4, 5, 6}};
> works perfectly, too.
 
'std::vector' is not aggregate. There are no aggregate initialization of
it possible. So it has to pick from its 7 constructors (one of what is
template) to produce an object and so there are ways to confuse with it
as well. Concrete case is lucky, it picks the constructor with
'std::initializer_list' and you and compiler understand the code above
in same way.
 
> Why does this kind of initialization not work with array? Do I
> misunderstand the standard document?
 
You can often not interpret C++ standard about some single thing
without finding at least 6 relevant quotes about the issue from
different parts of over 1000 pages of it. Initialization is especially
screwed up IMO in that respect.
 
'std::array' is quite simple and efficient class. Genius trick to get
rid of most need for raw array. Its description in standard is
unfortunately somewhat too broad and so it is misleading.
"Öö Tiib" <ootiib@hot.ee>: May 30 05:28AM -0700

On Saturday, 30 May 2015 15:19:04 UTC+3, Öö Tiib wrote:
 
> // full braces should certainly work
> // I myself prefer it
> std::array<std::array<int, 3>, 2> matrix_full {{{{1, 2, 3}, {4, 5, 6}}}};
 
Typo, should be:

std::array<std::array<int, 3>, 2> matrix_full {{{{1, 2, 3}}, {{4, 5, 6}}}};
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

Fwd: Pictures took by peter in South Africa

BEGIN:VCARD
VERSION:3.0
N:PDJ;Peter D;Jansen;;
FN:Peter D Jansen PDJ
ORG:ECO\;;
item1.ADR;type=WORK;type=pref:;;;;;;
item1.X-ABADR:us
NOTE:Skype\: pjblackbird\nskype\: Peter Jansen US\n
item2.URL;type=pref:http\://www.google.com/profiles/PJBlackbird
item2.X-ABLabel:_$
!<HomePage>!$_
X-AIM;type=HOME;type=pref:pjblackbird
X-ABUID:73161B18-B07A-44F3-B039-1252867BBFCA\:ABPerson
END:VCARD


Sent from my iPad

Begin forwarded message:

From: Vickie <scooterfifty858@yahoo.com>
Date: May 30, 2015 at 5:09:14 PM CDT
To: Tina Soong <tinasoong@att.net>, Tina Soong <tsoongtotherim@aol.com>
Subject: Pictures took by peter in South Africa



Sent from my iPhone

Begin forwarded message:

From: Peter Jansen <pjansen@pjblackbird.de>
Date: May 30, 2015 at 3:11:13 PM CDT
To: Vickie Tripple-B Tu Mei Hung Vicky <scooterfifty858@yahoo.com>
Subject: Kwandwe

Friday, May 29, 2015

Digest for comp.lang.c++@googlegroups.com - 6 updates in 2 topics

Thomas Richter <thor@math.tu-berlin.de>: May 29 11:03AM +0200

On 28.05.2015 19:59, jacobnavia wrote:
 
> I just do not see the point sorry. Why would I need a complicated C++
> library to do that?
 
Would your code compile and work on Linux? On android? On IOS? On MacOs?
 
No? See, that's why.
Cholo Lennon <chololennon@hotmail.com>: May 29 09:40AM -0300

On 05/28/2015 07:10 PM, jacobnavia wrote:
>> Datagrid(allMyData); myDatagrid.Draw();
 
> Yes, then it would be nice to see what data grid Mr Kerr has got in his
> library.
 
AFAIK the Mr Kerr library allows C++ programmers to access all .NET
framework without using C# or C++ extensions like C++/CLI or C++/CX
have, so (in theory) you can use .Net datagrid class. Mr Kerr library is
generated by a compiler (provided by Mr Kerr) using the .NET framework
as a source.
 
 
--
Cholo Lennon
Bs.As.
ARG
jacobnavia <jacob@jacob.remcomp.fr>: May 29 05:24PM +0200

Le 29/05/2015 11:03, Thomas Richter a écrit :
>> library to do that?
 
> Would your code compile and work on Linux? On android? On IOS? On MacOs?
 
> No? See, that's why.
 
Nowhere in the docs that I read was stated that the library was for
linux or OS X. I thoutht that was windows only.
legalize+jeeves@mail.xmission.com (Richard): May 29 05:21PM

[Please do not mail me a copy of your followup]
 
Thomas Richter <thor@math.tu-berlin.de> spake the secret code
>> library to do that?
 
>Would your code compile and work on Linux? On android? On IOS? On MacOs?
 
>No? See, that's why.
 
Kenny Kerr's "Modern C++" library doesn't do any of that either;
you're confusing cross-platform GUI library with Kenny Kerr's baby.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
legalize+jeeves@mail.xmission.com (Richard): May 29 05:24PM

[Please do not mail me a copy of your followup]
 
Cholo Lennon <chololennon@hotmail.com> spake the secret code
>have, so (in theory) you can use .Net datagrid class. Mr Kerr library is
>generated by a compiler (provided by Mr Kerr) using the .NET framework
>as a source.
 
Umm.... I don't know why you think any of the above things or how you
conclude that from his talks about his library. Again, because we
don't actually have the library available to us in any machine
readable form, we can only guess what the library actually does.
 
My understanding of it is completely different from yours; it appears
to be a *native* C++ library that access the Windows API (WinRT, I
think) using the native API. It's not clear if your code needs to be
compiled C++/CX or not. Again, hard to say because we can't actually
look at the library.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
eao197@gmail.com: May 29 12:13AM -0700

Hi!
 
It seems that there are only two live and evolving OpenSource actor frameworks for C++: CAF (C++ Actor Framework)[1] and SObjectizer[2].
 
After announce of new version of SObjectizer I was asked about comparison between SObjectizer and CAF. The light, more or less detailed, but informal comparison could be found here: http://eao197.blogspot.com/2015/05/progc11-sobjectizer-55-compared-to-c.html
 
Note. Introductory materials for CAF could be found here: http://www.actor-framework.org/manual/
And for SObjectizer could be found here: http://eao197.blogspot.com/2015/05/prog-all-slides-related-to-sobjectizer.html
Or in the project's Wiki: https://sourceforge.net/p/sobjectizer/wiki/so-5.5%20Basics/
 
-----
[1] http://actor-framework.org/
[2] https://sourceforge.net/projects/sobjectizer/
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

Digest for comp.programming.threads@googlegroups.com - 4 updates in 3 topics

Ramine <ramine@1.1>: May 28 01:51PM -0700

Hello,
 
 
My efficient Threadpool engine with priorities and my Threadpool engine
were updated to version 2.21.
 
 
You can download them from:
 
https://sites.google.com/site/aminer68/threadpool-with-priorities
 
 
Thank you,
Amine Moulay Ramdane.
bleachbot <bleachbot@httrack.com>: May 28 03:57PM +0200

bleachbot <bleachbot@httrack.com>: May 28 07:51PM +0200

Ramine <ramine@1.1>: May 28 09:59AM -0700

Hello,
 
 
I have just updated my projects , i have discovered a problem
with the threadpool, from time to time the threadpool was not scaling,
so i have corrected this problem and the threadpool is scaling perfectly
and my projects are now working correctly.
 
Please download again my following projects, i have just updated
them and they are at the same version even if i have updated the
threadpool inside them:
 
- Parallel archiver
- Parallel compression library
- Parallel sort library
- Scalable Parallel implementation of Conjugate Gradient Linear System
solver library that is NUMA-aware and cache-aware
- and Stringtree
 
 
You can download them again from:
 
https://sites.google.com/site/aminer68/
 
 
 
Thank you,
Amine Moulay Ramdane.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.programming.threads+unsubscribe@googlegroups.com.

Thursday, May 28, 2015

Digest for comp.lang.c++@googlegroups.com - 16 updates in 4 topics

scott@slp53.sl.home (Scott Lurndal): May 28 02:19PM


>> C++ looks very healthy to me right now.
 
>IMO the article title is misleading. It should be "A second dark age for
>C++ *on Windows*" or maybe better "A second dark age for C++ *in Microsoft*"
 
Or maybe "Much ado about nothing".
legalize+jeeves@mail.xmission.com (Richard): May 28 02:22PM

[Please do not mail me a copy of your followup]
 
Lynn McGuire <lmc@winsim.com> spake the secret code
 
>"A second dark age for C++"
> http://kennykerr.ca/2015/05/26/a-second-dark-age-for-c/
 
The problem with Kenny Kerr is that he's been pimping his library for
months, yet as near as I can tell noone can look at it except in
whatever videos he has created or whatever he has written on his blog.
 
If he wants that library adopted by the C++ community, it should be on
github with a commercial-friendly license.
 
As near as I can tell, he hasn't done this because it feels like he's
hoping Microsoft will purchase it from him.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
Christopher Pisz <nospam@notanaddress.com>: May 28 10:28AM -0500

On 5/27/2015 11:15 AM, Lynn McGuire wrote:
 
> In fact, the only thing that C++ is missing is an excellent cross
> platform user interface toolkit.
 
> Lynn
 
 
Looks like an advertisement, much like those commercials on TV that
start off with "The government has recently changed laws and you are
entitled to a low interest credit card!"
 
 
--
I have chosen to troll filter/ignore all subthreads containing the
words: "Rick C. Hodgins", "Flibble", and "Islam"
So, I won't be able to see or respond to any such messages
---
legalize+jeeves@mail.xmission.com (Richard): May 28 03:47PM

[Please do not mail me a copy of your followup]
 
Lynn McGuire <lmc@winsim.com> spake the secret code
 
>In fact, the only thing that C++ is missing is an excellent cross
>platform user interface toolkit.
 
I can think of 3 off the top of my head that I have used in my career
since the 90s:
 
wxWidgets
Qt
Galaxy (went out of business)
 
WikiPedia lists 11:
<https://en.wikipedia.org/wiki/List_of_platform-independent_GUI_libraries#C.2FC.2B.2B_packages>
 
I don't know how you can say that something is *missing* when
WikiPedia lists 11. Perhaps you didn't look hard enough, or you meant
something more specific like "the only thing that the C++ *standard*
is missing [...]", which is a very different thing.
 
Personally, I don't think a GUI framework belongs in the ISO standard
because it will end up like the CommonLISP standard.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
jacobnavia <jacob@jacob.remcomp.fr>: May 28 07:59PM +0200

Le 27/05/2015 18:10, Lynn McGuire a écrit :
> http://kennykerr.ca/2015/05/26/a-second-dark-age-for-c/
 
> C++ looks very healthy to me right now.
 
> Lynn
 
I looked at the videos of Mr Kerr's library. Obviously, not being a C++
head I am missing something, but I saw a demo of a window with some
color rectangles moving around.
 
 
???
 
 
I can do that using C (not even C++) in around 30 minutes:
 
1: lcc-win, my compiler system, generates the C source code for an empty
window with all the stuff needed in a few seconds.
 
2: In the WM_CREATE message create child windows (could be buttons, for
instance)
 
3) In the window procedure for those windows you subclass the WM_MOVE
message and the WM_CTLCOLOR to paint the windows with whatever colors
you wish.
 
 
I just do not see the point sorry. Why would I need a complicated C++
library to do that?
 
Maybe Mr Kerr should put a more realistic demo in his Web site, like,
for instance, buiklding an entry form or whatever.
FredK <fred.l.kleinschmidt@gmail.com>: May 28 11:02AM -0700

On Thursday, May 28, 2015 at 8:47:21 AM UTC-7, Richard wrote:
> is missing [...]", which is a very different thing.
 
> Personally, I don't think a GUI framework belongs in the ISO standard
> because it will end up like the CommonLISP standard.
 
I've been using Motif with C++ since the early 90's and have no complaints. I still use Motif2.1 on various Unix platforms and 2.3 on Linux and Windows (using OpenText as the X-server and XDK)
--
Fred K
Victor Bazarov <v.bazarov@comcast.invalid>: May 28 03:44PM -0400

On 5/28/2015 3:23 PM, Stefan Ram wrote:
> to assume that one is using a special IDE that applies some
> transformations to the user code. This is confusing to me.
> [..]
 
Qt is a _toolkit_ that includes several libraries. Yes, the code needs
to be processed by their tools to generate additional C++ source files.
There is no assumption about any IDE, you can edit your own code.
*If* you already use an IDE, it is very likely they can integrate with
it (and it's recommended).
 
If you want to be de-confused, get a book (there are several that deal
with different versions of Qt at different depths), it's actually very
simple once you grasp the basics.
 
V
--
I do not respond to top-posted replies, please don't ask
Christopher Pisz <nospam@notanaddress.com>: May 28 03:19PM -0500

On 5/28/2015 12:59 PM, jacobnavia wrote:
> library to do that?
 
> Maybe Mr Kerr should put a more realistic demo in his Web site, like,
> for instance, buiklding an entry form or whatever.
 
Ha. People freak right the heck out if they see the window's message
procedure these days. They want Datagrid myDatagrid = new
Datagrid(allMyData); myDatagrid.Draw();
 
 
 
--
I have chosen to troll filter/ignore all subthreads containing the
words: "Rick C. Hodgins", "Flibble", and "Islam"
So, I won't be able to see or respond to any such messages
---
Melzzzzz <mel@zzzzz.com>: May 28 10:47PM +0200

On 28 May 2015 19:23:45 GMT
 
> Regarding Qt: I wish it was a library! But instead it seems
> to assume that one is using a special IDE that applies some
> transformations to the user code. This is confusing to me.
 
I used Qt and I never used IDE on Unix/Linux.
jacobnavia <jacob@jacob.remcomp.fr>: May 29 12:10AM +0200

Le 28/05/2015 22:19, Christopher Pisz a écrit :
 
> Ha. People freak right the heck out if they see the window's message
> procedure these days. They want Datagrid myDatagrid = new
> Datagrid(allMyData); myDatagrid.Draw();
 
Yes, then it would be nice to see what data grid Mr Kerr has got in his
library.
 
Because showing how to move colored rectangles... is kind of underwhelming
 
:-)
Doug Mika <dougmmika@gmail.com>: May 28 01:45PM -0700

I have this neat little self defined Vector class (not quite complete, but merely useful to illustrate a purpose of using value_type=T), and my question is, in this class definition is value_type a member like size? Does a unique value_type exist for each instance of Vector? Or is it like a static member?
 
#include <iostream>
 
using namespace std;
 
template<typename T>
class Vector{
public:
using value_type=T;
Vector(int s){
this->size = s;

}
private:
int size;
T element;
};
 
int main()
{
//Testing the functionality
Vector<char> v(1);
Vector<char>::value_type a='u';
decltype(v)::value_type b='v';
cout<<a<<" "<<b<<endl;
}
red floyd <no.spam@its.invalid>: May 28 01:56PM -0700

On 5/28/2015 1:45 PM, Doug Mika wrote:
> I have this neat little self defined Vector class (not quite complete, but
> merely useful to illustrate a purpose of using value_type=T), and my
question is,
> in this class definition is value_type a member like size? Does a
unique value_type
> decltype(v)::value_type b='v';
> cout<<a<<" "<<b<<endl;
> }
 
Neither. It's more like a typedef.
 
Consider:
 
struct A {
struct B {
int x;
};
int y;
};
 
Same thing. Is "struct B" a member like y? No.
Does a unique "struct B" exist for each instance of A? No.
 
To paraphrase Pauli, the question isn't right... it isn't even wrong.
Doug Mika <dougmmika@gmail.com>: May 28 02:03PM -0700

On Thursday, May 28, 2015 at 3:46:10 PM UTC-5, Doug Mika wrote:
> decltype(v)::value_type b='v';
> cout<<a<<" "<<b<<endl;
> }
 
But we can refer to it using the scope resolution operator?
Victor Bazarov <v.bazarov@comcast.invalid>: May 28 05:08PM -0400

On 5/28/2015 5:03 PM, Doug Mika wrote:
> On Thursday, May 28, 2015 at 3:46:10 PM UTC-5, Doug Mika wrote:
>> I have this neat little self defined Vector class (not quite
complete, but merely useful to illustrate a purpose of using
value_type=T), and my question is, in this class definition is
value_type a member like size? Does a unique value_type exist for each
instance of Vector? Or is it like a static member?
>> cout<<a<<" "<<b<<endl;
>> }
 
> But we can refer to it using the scope resolution operator?
 
Yes, we can. A class is a namespace. Anything you declare in it can be
referred to using a scope resolution operator. Whether it makes sense
to do so depends on the context.
 
A class defined in a class is similar to a class defined in a namespace,
except that the class has access specifiers, and a namespace does not.
It's a member that can be public, private, or protected.
 
V
--
I do not respond to top-posted replies, please don't ask
ram@zedat.fu-berlin.de (Stefan Ram): May 28 07:23PM

>I've been using Motif with C++ since the early 90's
 
A standard API would give a stronger promise of stability.
A user of Motif canot know whether his GUI library will be
ported to new platforms. If there was a standard C++ GUI
interface, the chance that it is ported would be larger.
 
It does not necessarily have to be part of ISO/IEC 14882,
but can be a separate specification. Manufacturers of
implementations than can decide whether they want to
implement C++ with our without a compliant GUI library;
but /if/ they choose to deliever a compliant GUI library,
than they /can/ do this, because a specification exists.
 
Sometimes, choice is bad. When there are many different GUI
libraries interfaces possible from different manufacturers,
one has to make a choice, and it is possible that the
library chosen will be discontinued while another one will
flourish some years later. If there is only one single
standard API, this risk is smaller.
 
I wish Java had a single standard GUI library!
Instead it has AWT (90s), Swing (0s), and JavaFX (now).
The same applies to C#, which used to have WinForms,
but now seems to be moving into the direction of WPF.
 
Regarding Qt: I wish it was a library! But instead it seems
to assume that one is using a special IDE that applies some
transformations to the user code. This is confusing to me.
 
Think about a hypothetical C++ that does not contain a
standard console print library means (like »printf« or
»<<«). How would a tutorial begin? You were not able to
write »hello, world«! You would have first to tell the user
to choose a »console library« and then write several »hello,
world« lessons, one for each library, or choose one
yourself, but then you would not be teaching »C++«, but »C++
plus the ACME library«.
 
Also see this suggestion from 2003:
 
www.purl.org/stefan_ram/pub/c++_standard_extensions_en
 
(in case of 403, visit with Google referrer)
Jorgen Grahn <grahn+nntp@snipabacken.se>: May 28 01:04PM

On Mon, 2015-05-25, Juha Nieminen wrote:
>> editors I've seen can be configured to follow that rule.
 
> Google can eat my shorts.
 
> {} is a block, and its contents are indented.
 
Agree. For a few months ten years back I tried not to indent, but in
the end I went with the flow, and I now think it's better to indent.
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

Fwd: 转发:史上最牛名人父子合照集 等二件



Sent from my iPad

Begin forwarded message:

From: Dolores Kuo <doloresmkuo@gmail.com>
Date: May 27, 2015 at 12:30:25 PM CDT
To: Dingwu Guo <dingwu.guo@gmail.com>, Jensie Tou <pandjtou@aol.com>,  Tina Soong <tsoongtotherim@aol.com>, Chris Wang <chriswang_95051@yahoo.com>,  Nancy Chao <nancyhychao@yahoo.com>, Franz Mong <franzmong1108@yahoo.com>
Subject: Fwd: FW: 转发:史上最牛名人父子合照集 等二件



---------- Forwarded message ----------
From: Ronny Lin <ronny_lin@hotmail.com>
Date: Wednesday, May 27, 2015
Subject: FW: 转发:史上最牛名人父子合照集 等二件
To:



 

 



--
Sent from My iPad

Fwd: 吃�



Sent from my iPad

Begin forwarded message:

From: Hsiao-Hung <k6hsi@aol.com>
Date: May 27, 2015 at 12:06:27 PM CDT
Subject: Fwd: 吃飯







Subject: Fwd: 吃飯


習近平主席在西安接見印度總理莫迪,午飯期間,習近平主席教莫迪使用筷子,莫迪笑了笑說:

 

"中國人太落後了,吃飯還用筷子, 你看我們印度人吃什麽都用手抓。"既方便又靈活。

 

習近平主席點點頭,告訴随從官員:安排今天晚上吃火鍋.