Compilation problem.
frontend_helpers.h: In function 'const __gnu_debug_def::vector<typename
Pair::second_type, std::allocator<typename Pair::second_type> >
lyx::frontend::getSecond(const __gnu_debug_def::vector<Pair,
std::allocator<_CharT> >&)':
frontend_helpers.h:79: error: 'bind' is not a member of 'boost'
frontend_helpers.h:79: error: '_1' was not declared in this scope
make[6]: *** [ControlBibtex.lo] Error 1
make[6]: Leaving directory `/cvs/lyx-devel/trunk/src/frontends/controllers'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/cvs/lyx-devel/trunk/src/frontends/controllers'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cvs/lyx-devel/trunk/src/frontends'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/cvs/lyx-devel/trunk/src/frontends'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cvs/lyx-devel/trunk/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/cvs/lyx-devel/trunk/src'
make: *** [all-recursive] Error 1
[EMAIL PROTECTED] wrote:
Author: kuemmel
Date: Tue Sep 4 20:35:58 2007
New Revision: 20044
URL: http://www.lyx.org/trac/changeset/20044
Log:
move getSecond to frontend_helpers.h
Modified:
lyx-devel/trunk/src/frontends/controllers/frontend_helpers.h
lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp
lyx-devel/trunk/src/frontends/qt4/GuiGraphics.cpp
lyx-devel/trunk/src/frontends/qt4/GuiPrefs.cpp
Modified: lyx-devel/trunk/src/frontends/controllers/frontend_helpers.h
URL:
http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/controllers/frontend_helpers.h?rev=20044
==============================================================================
--- lyx-devel/trunk/src/frontends/controllers/frontend_helpers.h (original)
+++ lyx-devel/trunk/src/frontends/controllers/frontend_helpers.h Tue Sep 4
20:35:58 2007
@@ -69,6 +69,16 @@
///
std::vector<ColorPair> const getColorData();
+///
+template<class Pair>
+std::vector<typename Pair::second_type> const
+getSecond(std::vector<Pair> const & pr)
+{
+ std::vector<typename Pair::second_type> tmp(pr.size());
+ std::transform(pr.begin(), pr.end(), tmp.begin(),
+ boost::bind(&Pair::second, _1));
+ return tmp;
+}
///
typedef std::pair<docstring, std::string> LanguagePair;
Modified: lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp
URL:
http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp?rev=20044
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp Tue Sep 4 20:35:58 2007
@@ -170,15 +170,6 @@
//
/////////////////////////////////////////////////////////////////////
-template<class Pair>
-std::vector<typename Pair::second_type> const
-getSecond(std::vector<Pair> const & pr)
-{
- std::vector<typename Pair::second_type> tmp(pr.size());
- std::transform(pr.begin(), pr.end(), tmp.begin(),
-
boost::bind(&Pair::second, _1));
- return tmp;
-}
GuiDocumentDialog::GuiDocumentDialog(GuiDocument * form)
: form_(form), lang_(getSecond(getLanguageData(false)))
Modified: lyx-devel/trunk/src/frontends/qt4/GuiGraphics.cpp
URL:
http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiGraphics.cpp?rev=20044
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiGraphics.cpp (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiGraphics.cpp Tue Sep 4 20:35:58 2007
@@ -388,16 +388,6 @@
vector<string>::const_iterator cit =
find(v.begin(), v.end(), s);
return (cit != v.end()) ? int(cit - v.begin()) : 0;
-}
-
-template<class Pair>
-std::vector<typename Pair::second_type> const
-getSecond(std::vector<Pair> const & pr)
-{
- std::vector<typename Pair::second_type> tmp(pr.size());
- std::transform(pr.begin(), pr.end(), tmp.begin(),
- boost::bind(&Pair::second, _1));
- return tmp;
}
Modified: lyx-devel/trunk/src/frontends/qt4/GuiPrefs.cpp
URL:
http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiPrefs.cpp?rev=20044
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiPrefs.cpp (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiPrefs.cpp Tue Sep 4 20:35:58 2007
@@ -1573,17 +1573,6 @@
//
/////////////////////////////////////////////////////////////////////
-template<class Pair>
-std::vector<typename Pair::second_type> const
-getSecond(std::vector<Pair> const & pr)
-{
- std::vector<typename Pair::second_type> tmp(pr.size());
- std::transform(pr.begin(), pr.end(), tmp.begin(),
- boost::bind(&Pair::second, _1));
- return tmp;
-}
-
-
PrefLanguage::PrefLanguage(QWidget * parent)
: PrefModule(_("Language"), 0, parent)
{
_______________________________________________
Cvslog mailing list
[EMAIL PROTECTED]
http://www.lyx.org/mailman/listinfo/cvslog
--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto