From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5953 invoked by alias); 28 Jul 2005 18:47:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5923 invoked by uid 48); 28 Jul 2005 18:47:25 -0000 Date: Thu, 28 Jul 2005 18:51:00 -0000 Message-ID: <20050728184725.5922.qmail@sourceware.org> From: "owen at titan dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040913003933.17445.carlson14@llnl.gov> References: <20040913003933.17445.carlson14@llnl.gov> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/17445] too few template-parameter-lists X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg03748.txt.bz2 List-Id: ------- Additional Comments From owen at titan dot com 2005-07-28 18:47 ------- >>From Wolfgang Bangerth: You need to write: template <> std::map MyType::m_map = std::map(); My problem with this is that it requires that the static member support the copy constructor. In my case, the static member is something that cannot be copied, so I put an explicit copy constructor into the private section of my template class, which makes the above statement generate an error that the copy constructor is private. How do I instantiate this static member? It's default constructor does all the initialization I want, and I don't want that initialization done twice. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17445