Skip to content

Instantly share code, notes, and snippets.

cmake_minimum_required(VERSION 3.0.0)
project(locale_bug_test VERSION 0.1 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
find_package(Qt5 COMPONENTS Core Concurrent)
add_executable(${PROJECT_NAME} "main.cpp")
// Ast tree definition.
// Used to read expressions of the form +2, -2, -v, +v.
using ExpressionType = x3::variant<
x3::forward_ast<struct UnaryExpression>,
x3::forward_ast<struct Variable>
>;
struct Expression : ExpressionType {
using base_type::base_type;
C:\Users\Ubiduba\Documents\Work\misc\boost\boost/spirit/home/x3/support/ast/variant.hpp(139): error C2057: expected constant expression
C:\Users\Ubiduba\Documents\Work\misc\boost\boost/mpl/not.hpp(41): note: see reference to class template instantiation 'boost::has_nothrow_constructor<boost::spirit::x3::variant<boost::spirit::x3::forward_ast<B>>>' being compiled
C:\Users\Ubiduba\Documents\Work\misc\boost\boost/mpl/aux_/preprocessed/plain/and.hpp(25): note: see reference to class template instantiation 'boost::mpl::not_<boost::has_nothrow_constructor<boost::spirit::x3::variant<boost::spirit::x3::forward_ast<B>>>>' being compiled
C:\Users\Ubiduba\Documents\Work\misc\boost\boost/mpl/aux_/preprocessed/plain/and.hpp(55): note: see reference to class template instantiation 'boost::mpl::aux::and_impl<true,T2,T3,T3,T5>' being compiled
with
[
T2=boost::mpl::apply1<boost::mpl::protect<boost::detail::variant::find_fallback_type_pred,0>,boost::mpl::l_iter<boost::mpl::l_item<boost::mpl::long_<1
@RandomInEqualities
RandomInEqualities / OOP_F2003_Part_2.md
Created January 15, 2018 15:20 — forked from n-s-k/OOP_F2003_Part_2.md
Object-Oriented Programming in Fortran 2003 Part 2: Data Polymorphism

Object-Oriented Programming in Fortran 2003 Part 2: Data Polymorphism

Original article by Mark Leair, PGI Compiler Engineer

Note: This article was revised in March 2015 and again in January 2016 to bring it up-to-date with the production software release and to correct errors in the examples.

This is Part 2 of a series of articles:

@RandomInEqualities
RandomInEqualities / OOP_F2003_Part_1.md
Created January 15, 2018 15:19 — forked from n-s-k/OOP_F2003_Part_1.md
Object-Oriented Programming in Fortran 2003 Part 1: Code Reusability