From 2732850660790716144
X-Google-Thread: f78e5,2feb33bcd45033ce,start
X-Google-NewGroupId: yes
X-Google-Attributes: gid7894ca11fe,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news1.google.com!news.glorb.com!news.alt.net
From: Duncan Smith <dsmith1974@gmail.com>
Newsgroups: comp.std.c++
Subject: Bracket, equals, bracket?
Date: Sun, 19 Sep 2010 18:13:09 CST
Organization: http://groups.google.com
Lines: 17
Sender: std-c++-request@ruralroute.cs.rpi.edu
Approved: james.dennett@gmail.com
Message-ID: <e8f25297-0146-45df-b2a3-c1307cac29dd@i17g2000vbq.googlegroups.com>
NNTP-Posting-Host: netlab.cs.rpi.edu
Content-Type: text/plain; charset=ISO-8859-1
To: (Usenet)
Return-Path: <cppmods@assassin.cs.rpi.edu>
X-Hash: SCt|09b0aab274240801660c85f2a956c9adac08c342|be3cdabcc234793e8fcc535bfa7148f5
X-Countries: United States
X-SMTP-From: accepted <cppmods@assassin.cs.rpi.edu> assassin.cs.rpi.edu [128.113.126.17] (assassin.cs.rpi.edu) {United States}
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=cs.rpi.edu; h=date
	:to:sender:message-id:from:subject:content-type; s=default; i=
	128.113.126.17@cs.rpi.edu; t=1284937988; x=1285542788; l=642;
	 bh=GhokFtrfTC1uCeVngTaOKPrtYHU=; b=dIuFnhDyJsypp4VyzmjZ1A+sUY4a
	rfmP5WDJK0Hg+42bAxTFMnygM3ieJ6rAq01nvKCW+gvUtPJRUaIu7gL7WAI2kjn6
	S5HoFydypwVFlL0q5zxB65gvKHPNUVV99lflYjMONZLNUCTvsH6iFf5mj4BOPjca
	/QzNJ6ejVFxlvcI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=cs.rpi.edu; h=date:to:sender
	:message-id:from:subject:content-type; q=dns; s=default; b=ZOMI7
	YlZcjmDVGlXOyx/QG5/SHW8rAmVNBOoe3hZn3Wqx+OiDj5fCVorIU3EYzQpQR2jV
	C7IPQMPEsd1JCdehzWOE6s4M9wdDJ+SCQH0IZavyDPGnPElycQ0KDplmuTcQQ5CH
	C4t/Pj3NtEEvY67H7K/WZlHr+7GTz0BwqG69kg=
X-Spam-Report: Spam Report from cliffclavin.cs.rpi.edu (SA:3.2.5):
	-1.8 ALL_TRUSTED            Passed through trusted hosts only via SMTP
	3.4 HEADER_SPAM            Bulk email fingerprint (header-based) found
	-0.9 BAYES_00               BODY: Bayesian spam probability is 0 to 1% [score: 0.0000]
	0.2 SARE_HEAD_HDR_APPROV   Message headers used which identify spam
X-Spam-Info: 0.9, local;
	ALL_TRUSTED,BAYES_00,HEADER_SPAM,SARE_HEAD_HDR_APPROV
X-Spam-Scanned-By: cliffclavin.cs.rpi.edu using SpamAssassin 3.2.5
X-Virus-Scanned-By: cliffclavin.cs.rpi.edu
X-Original-Date: Sun, 19 Sep 2010 04:45:35 -0700 (PDT)
X-Submission-Address: std-c++@netlab.cs.rpi.edu
X-Scanned-By: MIMEDefang 2.67 on 128.113.126.25
Xref: g2news1.google.com comp.std.c++:3013

In this months DDJ Herb Sutter writes some code like:

class AsyncLogFile {
public:
void write( string str ) { a.Send( [=] { log.write( str ); } ); }

My question is what does [=] mean, I thought square brackets were for
indexing arrays unless maybe the operator[] is overloaded, but then a
google codesearch shows other uses of [=], does it have a special or
common meaning?

--
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]



