From: Epiphanov Sergei <serpiph@nikiet.ru>
To: Andrey Rahmatullin <wrar@altlinux.ru>, sisyphus@altlinux.ru
Subject: Re: [sisyphus] GCC 3.3 vs GCC 3.4
Date: Mon, 11 Apr 2005 16:24:48 +0400
Message-ID: <200504111624.49273.serpiph@nikiet.ru> (raw)
In-Reply-To: <20050411121250.GI30816@wrars-comp.wrarsdomain>
В сообщении от 11 Апрель 2005 16:12 Andrey Rahmatullin написал:
> On Mon, Apr 11, 2005 at 03:46:53PM +0400, Epiphanov Sergei wrote:
> > То есть надо править Qt или ждать когда разработчики исправят это
> > сами? Я
>
> У вас не работает прога, включающая qmap.h? Покажите ее.
>
> > имею в виду файл qmap.h, определение оператора [] для класса QMap.
>
> T& operator[] ( const Key& k );
> Это что ли? А что здесь неправильно?
template<class Key, class T>
Q_INLINE_TEMPLATES T& QMap<Key,T>::operator[] ( const Key& k )
{
detach();
QMapNode<Key,T>* p = sh->find( k ).node;
if ( p != sh->end().node )
return p->data;
return insert( k, T() ).data();
}
Проблема в строке
return insert( k, T() ).data();
А программа проста:
QMap<int,QString> map;
QString s("Str");
map[0]=s;
--
С уважением, Епифанов Сергей
next prev parent reply other threads:[~2005-04-11 12:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-11 8:04 Epiphanov Sergei
2005-04-11 8:53 ` Dmitry Kazimirov
2005-04-11 10:41 ` Dmitry V. Levin
2005-04-11 11:46 ` Epiphanov Sergei
2005-04-11 12:12 ` Andrey Rahmatullin
2005-04-11 12:24 ` Epiphanov Sergei [this message]
2005-04-11 12:40 ` Andrey Rahmatullin
2005-04-11 13:31 ` Epiphanov Sergei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200504111624.49273.serpiph@nikiet.ru \
--to=serpiph@nikiet.ru \
--cc=sisyphus@altlinux.ru \
--cc=wrar@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git