Just got this delightful error message:

gslwrap/HMCMC.cpp:57: error: conversion from ‘boost::cb_details::iterator<boost::circular_buffer<bool, std::allocator<bool> >, boost::cb_details::const_traits<std::allocator<bool> > >’ to non-scalar type ‘boost::cb_details::iterator<boost::circular_buffer<bool, std::allocator<bool> >, boost::cb_details::nonconst_traits<std::allocator<bool> > >’ requested

I get it and its ilk fairly regularly.  Takes me a bit to actually sort it out.  Don’t know why.  What it’s trying to say is that I used a non-const iterator somewhere where it needed to be a const_iterator.

Was that so hard?

One Response to “Stupid compiler error messages”

The old UNIX kernel used to have a message that read:

panic: urp: fork

when the process table waz too full.

On Multics, if the file system was inconsistent (in a special way) you could get the error message:

HODIE NATUS EST RADICI FRATER,

which means, roughly, “today unto the Root a brother is born.” This lead to a well-documented story which was eventually written up in a journal article.

Something to say?