BOOST_STATIC_ASSERT ?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

BOOST_STATIC_ASSERT ?

Jens Kallup
Hello,

I get Error:
  1. /usr/include/boost/type_traits/make_unsigned.hpp:38: Error: static assertion failed: (::boost::type_traits::ice_or< ::boost::is_integral<T>::value, ::boost::is_enum<T>::value>::value)
  2.     BOOST_STATIC_ASSERT(
  3.     ^
  4.  
  5.             symsbols  // line 544
  6.                 = tok.miss_1 [ _val = phx::construct<expression_ast>(1) ]


You can follow on:
https://github.com/paule32/dBase4Linux/blob/master/source/parser/dbase/yymain.cc

Thanks for helping Hands

Jens


------------------------------------------------------------------------------

_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general
Reply | Threaded
Open this post in threaded view
|

Re: BOOST_STATIC_ASSERT ?

cppljevans
On 08/24/2016 07:56 AM, Jens Kallup wrote:

> Hello,
>
> I get Error:
>
>  1.
>     /usr/include/boost/type_traits/make_unsigned.hpp:38: Error: static
>     assertion failed: (::boost::type_traits::ice_or<
>     ::boost::is_integral<T>::value, ::boost::is_enum<T>::value>::value)
>  2.
>         BOOST_STATIC_ASSERT(
>  3.
>         ^
>  4.
>
>  5.
>                 symsbols  // line 544
>  6.
>                     = tok.miss_1 [ _val =
>     phx::construct<expression_ast>(1) ]
>
>
> You can follow on:
> https://github.com/paule32/dBase4Linux/blob/master/source/parser/dbase/yymain.cc
>
> Thanks for helping Hands
>
> Jens
>
Jens,

I clones the above repository about 10 min. ago and tried to compile
with the command here:

https://github.com/paule32/dBase4Linux/blob/master/source/parser/dbase/make

but modified by converting to an actual Makefile. When run, it produced
errors:

--{--cut here--
yymain.cc: In member function ‘void
dBaseParser::ast_print::operator()(const dBaseParser::class_op&) const’:
yymain.cc:334:13: error: ‘QString’ was not declared in this scope
              QString str = expr.class_oname.c_str();
              ^
--}--cut here--

How did you avoid those error messages with the code in your repository?

-regards,
Larry



------------------------------------------------------------------------------
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general
Reply | Threaded
Open this post in threaded view
|

Re: BOOST_STATIC_ASSERT ?

Jens Kallup
Hello Larry,

it works for me, now.
But is it a Bug?
I can't parse:  "val = 2 - - - 2"  as invalid

TIA

Jens

------------------------------------------------------------------------------
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general
Reply | Threaded
Open this post in threaded view
|

Re: BOOST_STATIC_ASSERT ?

cppljevans
On 08/24/2016 04:44 PM, Jens Kallup wrote:
> Hello Larry,
>
> it works for me, now.
It doesn't for me.  I'm still getting same error
about QString and other Q* symbols.

> But is it a Bug?
> I can't parse:  "val = 2 - - - 2"  as invalid
>
Can't say as I can't even compile the program :(

-regards,
Larry




------------------------------------------------------------------------------
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general
Reply | Threaded
Open this post in threaded view
|

Re: BOOST_STATIC_ASSERT ?

cppljevans
On 08/24/2016 05:37 PM, Larry Evans wrote:

> On 08/24/2016 04:44 PM, Jens Kallup wrote:
>> Hello Larry,
>>
>> it works for me, now.
> It doesn't for me.  I'm still getting same error
> about QString and other Q* symbols.
>
>> But is it a Bug?
>> I can't parse:  "val = 2 - - - 2"  as invalid
>>
> Can't say as I can't even compile the program :(
>
> -regards,
> Larry
Also, instead of:

 
https://github.com/paule32/dBase4Linux/blob/master/source/parser/dbase/make

use a real makefile, such as that in the attached.

That way, somebody can actually use make, and
specify separate compiler, as I did, with the
command line:

   make COMPILER==/home/evansl/dwnlds/gcc/5.2.0/install/bin/g++




------------------------------------------------------------------------------

_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general

makefile (675 bytes) Download Attachment