Boost logo

Boost Users :

Subject: [Boost-users] Boost.Fusion compilation error gcc 4.4.3 in boost/fusion/include/make_unfused_generic.hpp
From: Theo de Vries (t.j.a.devries_at_[hidden])
Date: 2010-04-24 03:51:16


I have an up-to-date Archlinux system with a standard gcc 4.4.3.
I wish to use a library that in turn uses Boost.Fusion.
I get compilation errors for Boost.Fusion 1.41 and 1.42 (version 1.40
and 1.37 are ok).
Simple test program to reproduce:

#include <boost/fusion/include/make_unfused_generic.hpp>
#include <iostream>

int main()
{
    std::cout << "Hello world";
}

The first error that I get is:

boost/fusion/functional/adapter/unfused_generic.hpp:54 error: a
function call cannot appear in a constant-expression
boost/fusion/functional/adapter/unfused_generic.hpp:54 error: template
argument 1 is invalid

Google has not helped me to resolve my problems.
Any help is greatly appreciated.

Theo.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net