> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> move the class to public: _or_ make the inner class a friend of
Lars> the outer class. (I think I prefere friend)
Adding "friend class Foo::Pimpl;" after the Pimpl declaration seems to
work. I'll do that in LyX.
JMarc
Angus Leeming <[EMAIL PROTECTED]> writes:
| This code fragment compiles fine with
| cxx -c trial.C
| but bombs out when compiled
| cxx -std strict_ansi -c trial.C
|
| cxx: Error: trial.C, line 9: class "Foo::Pimpl" is inaccessible
| func(&Foo::Pimpl::bar);
Ok I get
ial.C, line 11: nonstandard form for taking the address of a
member function
func(&bar);
--^
cxx: Info: 1 error detected in the compilation of "trial.C".
-- Forwarded Message ------
Subject: Re: SigC++ related cxx error
Date
-- Forwarded Message --
Subject: Re: SigC++ related cxx error
Date: 23 Jun 2000 19:03:47 +0200
From: Jean-Marc Lasgouttes <[EMAIL PROTECTED]>
JMarc> I have come up with the following example to demonstrate what
JMarc> happens. Lars, is it right? If it is,
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> Hmm... a compiler bug?
Lars> AFAIK &BufferView::Pimpl::cursorToggle is the right one.
I have come up with the following example to demonstrate what happens.
Lars, is it right? If it is, I'll ask on comp.lang.c++ and the tru64
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: |
Lars> > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | |
Lars> Lars> Did you try &Pimpl::cursorToggle ? | | No, but trying it
Lars> now gives: | cxx: Error: ..
Perhaps the following will prove useful.
Angus
Further investigation reveals:
1. Similar code in FormCopyright.C compiles fine
d->showCopyright.connect(slot(this, &FormCopyright::show));
The problem appears linked to the nested class.
2. Changing the code in BufferView::Pimpl::Pimpl() t
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
| > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
|
| Lars> Did you try &Pimpl::cursorToggle ?
|
| No, but trying it now gives:
| cxx: Error: ../../lyx-devel/src/BufferView_pimpl.C, line 82: class
| "BufferView::Pimpl" i
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> Did you try &Pimpl::cursorToggle ?
No, but trying it now gives:
cxx: Error: ../../lyx-devel/src/BufferView_pimpl.C, line 82: class
"BufferView::Pimpl" is inaccessible
&Pimp
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
| I get this when compiling with compaq cxx:
|
| mycxx -DHAVE_CONFIG_H -I. -I../../lyx-devel/src -I. -I../../lyx-devel/images -I..
|-I../../lyx-devel -I../../lyx-devel/src/cheaders
|-I/afs/rocq/home/meval/common/include -I/usr/local/include
10 matches
Mail list logo