brooksmoses: (anime-me)
[personal profile] brooksmoses
So, I discovered something scary this evening, as appropriate for the holiday. (Well, scary, for those of you who know C++, anyhow.)

I was tracking down a segfault in a testcase for our rather heavily template-based C++ library, and decided that the obvious thing was to run it in GDB and have a look at the stack trace.

I present to you just a tiny -- but telling -- piece from the middle of the ten-thousand-character result I got from "where":
  vsip::impl::None_type> > > > > > > > > > > > >, false>::exec

Date: 2007-11-01 05:32 am (UTC)
From: [identity profile] pure-agnostic.livejournal.com
A template 14 layers deep?

Luckily, you can find some utilities on the web which will decode C++ compiler error messages that contain templates.
Page generated Jan. 20th, 2026 10:03 pm
Powered by Dreamwidth Studios